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:
parent
428e5d789f
commit
e56cc50d6c
1 changed files with 15 additions and 0 deletions
15
conf/ynh-hotspot.service
Normal file
15
conf/ynh-hotspot.service
Normal 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
|
Loading…
Reference in a new issue