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