Browse Source

systemd: Add a service unit for ynh-hotspot

note: require start and stop are a space separated list
Sebastien Badia 10 years ago
parent
commit
e56cc50d6c
1 changed files with 15 additions and 0 deletions
  1. 15 0
      conf/ynh-hotspot.service

+ 15 - 0
conf/ynh-hotspot.service

@@ -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