systemd: Add a service unit for ynh-vpnclient

This commit is contained in:
Sebastien Badia 2015-05-13 01:25:38 +02:00
parent 67328ed1a7
commit 810ec32947

View File

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