Updated auto start example service files for systemd and runit.
This commit is contained in:
parent
5a59ef6325
commit
d70073274b
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
[ -r ./conf ] && . ./conf
|
[ -r ./conf ] && . ./conf
|
||||||
exec fenrir
|
exec fenrir -f
|
||||||
|
@ -1,18 +1,15 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Fenrir screenreader
|
Description=Fenrir screenreader
|
||||||
Wants=systemd-udev-settle.service
|
Wants=systemd-udev-settle.service
|
||||||
After=systemd-udev-settle.service sound.target
|
After=systemd-udev-settle.service getty.target
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=/var/run/fenrir.pid
|
PIDFile=/var/run/fenrir.pid
|
||||||
ExecStart=/usr/bin/fenrir-daemon
|
ExecStart=/usr/bin/fenrir
|
||||||
ExecReload=/usr/bin/kill -HUP $MAINPID
|
ExecReload=/usr/bin/kill -HUP $MAINPID
|
||||||
Restart=always
|
Restart=always
|
||||||
#Group=fenrirscreenreader
|
#Group=fenrirscreenreader
|
||||||
#User=fenrirscreenreader
|
#User=fenrirscreenreader
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
# start as early as possible in boot process
|
|
||||||
#WantedBy=sound.target
|
|
||||||
# start as soon the login prompt is available
|
|
||||||
WantedBy=getty.target
|
WantedBy=getty.target
|
||||||
|
@ -5,7 +5,7 @@ After=systemd-udev-settle.service sound.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=/var/run/fenrir.pid
|
PIDFile=/var/run/fenrir.pid
|
||||||
ExecStart=/usr/local/bin/fenrir-daemon
|
ExecStart=/usr/local/bin/fenrir
|
||||||
ExecReload=/usr/bin/kill -HUP $MAINPID
|
ExecReload=/usr/bin/kill -HUP $MAINPID
|
||||||
Restart=always
|
Restart=always
|
||||||
#Group=fenrirscreenreader
|
#Group=fenrirscreenreader
|
||||||
|
Loading…
Reference in New Issue
Block a user