Browse Source

systemd: Add a service unit for ynh-piratebox

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

+ 15 - 0
conf/ynh-piratebox.service

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