From e56cc50d6cfdee92379980273ef9482b26a4f59c Mon Sep 17 00:00:00 2001 From: Sebastien Badia Date: Tue, 12 May 2015 09:17:59 +0200 Subject: [PATCH] systemd: Add a service unit for ynh-hotspot note: require start and stop are a space separated list --- conf/ynh-hotspot.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 conf/ynh-hotspot.service diff --git a/conf/ynh-hotspot.service b/conf/ynh-hotspot.service new file mode 100644 index 0000000..b005573 --- /dev/null +++ b/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