systemd: Add a service unit for ynh-vpnclient
This commit is contained in:
parent
67328ed1a7
commit
810ec32947
15
conf/ynh-vpnclient.service
Normal file
15
conf/ynh-vpnclient.service
Normal 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
|
Loading…
x
Reference in New Issue
Block a user