mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
LSBize service script
This commit is contained in:
parent
21273774a5
commit
de2ded1984
@ -1,10 +1,26 @@
|
|||||||
|
### BEGIN INIT INFO
|
||||||
|
# Provides: /etc/raspap/hostapd/servicestart
|
||||||
|
# Required-Start: $remote_fs $syslog
|
||||||
|
# Required-Stop: $remote_fs $syslog
|
||||||
|
# Default-Start: 2 3 4 5
|
||||||
|
# Default-Stop: 0 1 6
|
||||||
|
# Short-Description: Start RaspAP daemon at boot time
|
||||||
|
# Description: Enable service provided by daemon.
|
||||||
|
### END INIT INFO
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=RaspAP daemon
|
Description=RaspAP Service Daemon
|
||||||
After=multi-user.target
|
DefaultDependencies=no
|
||||||
|
After=systemd-sysctl.service
|
||||||
|
Before=sysinit.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=idle
|
Type=oneshot
|
||||||
ExecStart=/bin/bash /etc/raspap/hostapd/servicestart.sh --interface uap0 --seconds 3
|
ExecStart=/bin/bash /etc/raspap/hostapd/servicestart.sh --interface uap0 --seconds 3
|
||||||
|
ExecReload=/bin/bash /etc/raspap/hostapd/servicestart.sh --interface uap0 --seconds 3
|
||||||
|
ExecStop=/bin/bash /etc/raspap/hostapd/servicestart.sh --action stop
|
||||||
|
RemainAfterExit=yes
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user