2020-03-20 10:03:28 +01:00
|
|
|
### BEGIN INIT INFO
|
2020-03-22 00:37:05 +01:00
|
|
|
# Provides: raspapd
|
2020-03-20 10:03:28 +01:00
|
|
|
# Required-Start: $remote_fs $syslog
|
|
|
|
# Required-Stop: $remote_fs $syslog
|
2020-03-22 10:06:23 +01:00
|
|
|
# Default-Start: S 2 3 4 5
|
2020-03-20 10:03:28 +01:00
|
|
|
# Default-Stop: 0 1 6
|
|
|
|
# Short-Description: Start RaspAP daemon at boot time
|
2020-03-22 10:06:23 +01:00
|
|
|
# Description: Enable service provided by daemon
|
2020-03-20 10:03:28 +01:00
|
|
|
### END INIT INFO
|
2020-03-22 10:06:23 +01:00
|
|
|
# Author: BillZ <billzimmerman@gmail.com>
|
2020-03-20 10:03:28 +01:00
|
|
|
|
2019-04-19 13:33:18 +02:00
|
|
|
[Unit]
|
2020-03-20 10:03:28 +01:00
|
|
|
Description=RaspAP Service Daemon
|
|
|
|
DefaultDependencies=no
|
2020-03-22 00:37:05 +01:00
|
|
|
After=network.target
|
2019-04-19 13:33:18 +02:00
|
|
|
|
|
|
|
[Service]
|
2020-03-20 10:03:28 +01:00
|
|
|
Type=oneshot
|
2019-04-19 13:33:18 +02:00
|
|
|
ExecStart=/bin/bash /etc/raspap/hostapd/servicestart.sh --interface uap0 --seconds 3
|
2020-03-20 10:03:28 +01:00
|
|
|
ExecReload=/bin/bash /etc/raspap/hostapd/servicestart.sh --interface uap0 --seconds 3
|
|
|
|
ExecStop=/bin/bash /etc/raspap/hostapd/servicestart.sh --action stop
|
|
|
|
RemainAfterExit=yes
|
2019-04-19 13:33:18 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
2020-03-20 10:03:28 +01:00
|
|
|
|