mirror of
https://github.com/workinghard/jslisten.git
synced 2025-12-13 19:02:09 +00:00
systemd service
This commit is contained in:
15
utils/jslisten.service
Normal file
15
utils/jslisten.service
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=jslisten daemon
|
||||
After=network.target auditd.service
|
||||
|
||||
[Service]
|
||||
Type=idle
|
||||
ExecStart=/bin/sh -ec "exec /opt/bin/jslisten"
|
||||
ExecReload=/bin/kill -9 $MAINPID
|
||||
ExecStop=/bin/kill -9 $MAINPID
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
User=root
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user