1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hotspot_ynh.git synced 2024-09-03 19:25:53 +02:00

systemd: Add a service unit for ynh-hotspot

note: require start and stop are a space separated list
This commit is contained in:
Sebastien Badia 2015-05-12 09:17:59 +02:00
parent 428e5d789f
commit e56cc50d6c

15
conf/ynh-hotspot.service Normal file
View file

@ -0,0 +1,15 @@
[Unit]
Description=YunoHost Wifi Hotspot.
Requires=network.target
After=network.target
[Service]
Type=oneshot
ExecStart=/usr/local/bin/ynh-hotspot start
ExecRestart=/usr/local/bin/ynh-hotspot restart
ExecStop=/usr/local/bin/ynh-hotspot stop
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Alias=ynh-hotspot.service