Browse Source

[linting] specify User=root systemd directive

HgO 1 week ago
parent
commit
6cebd0387c
2 changed files with 2 additions and 0 deletions
  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