Parcourir la source

[linting] specify User=root systemd directive

HgO il y a 1 semaine
Parent
commit
6cebd0387c
2 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 1 0
      conf/ynh-vpnclient-checker.service
  2. 1 0
      conf/ynh-vpnclient.service

+ 1 - 0
conf/ynh-vpnclient-checker.service

@@ -4,6 +4,7 @@ After=ynh-vpnclient.service
 
 [Service]
 Type=simple
+User=root
 ExecStart=/usr/local/bin/ynh-vpnclient-checker.sh
 
 [Install]

+ 1 - 0
conf/ynh-vpnclient.service

@@ -5,6 +5,7 @@ After=network.target
 
 [Service]
 Type=oneshot
+User=root
 ExecStart=/usr/local/bin/ynh-vpnclient start
 ExecStop=/usr/local/bin/ynh-vpnclient stop
 RemainAfterExit=yes