Skip to content

Commit 3a0aa1f

Browse files
committed
Fix wrong systemd config: "Supervising process X which is not our child. We'll most likely not notice when it exits."
Thanks to @zMatt from https://web.libera.chat/#beagle
1 parent 43d9fc3 commit 3a0aa1f

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

cli/python/src/client/cmd_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def do_install(self, service_opts: UnixServiceOpts, auto_startup: bool = False):
276276
_, cmd = EnvHelper.build_executable_command()
277277
svc_opts = self._standard_service_opt(service_opts)
278278
self.device.unix_service.create(svc_opts, {
279-
'{{WORKING_DIR}}': f'{self.opts.vpn_dir}', '{{PID_FILE}}': f'{self.opts.pid_file}',
279+
'{{WORKING_DIR}}': f'{self.opts.vpn_dir}',
280280
'{{VPN_DESC}}': svc_opts.service_name,
281281
'{{START_CMD}}': f'{cmd} start --vpn-dir {self.opts.vpn_dir}',
282282
'{{STOP_CMD}}': f'{cmd} stop --vpn-dir {self.opts.vpn_dir}'

cli/python/src/client/device_resolver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ def kind(self) -> UnixServiceType:
704704

705705
@property
706706
def standard_service_dir(self) -> str:
707-
return '/lib/systemd/system'
707+
return '/etc/systemd/system'
708708

709709
def create(self, svc_opts: UnixServiceOpts, replacements: dict, auto_startup: bool = False):
710710
service_fqn = self.to_service_fqn(svc_opts.service_dir, svc_opts.service_name)

cli/python/src/client/resources/playio-vpn.service.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ WorkingDirectory={{WORKING_DIR}}
1111
ExecStart={{START_CMD}}
1212
ExecStop={{STOP_CMD}}
1313
TimeoutStartSec=0
14-
PIDFile={{PID_FILE}}
1514

1615
# Hardening
1716
PrivateTmp=yes

0 commit comments

Comments
 (0)