I've got the following unit: [Unit] Description=Random Submitter Wants=network-online.target After=network-online.target other.service RequiresMountsFor=/data
[Service] Type=simple Environment=PYTHONPATH=/data PrivateTmp=false # Launches client config and others if needed ExecStartPre=/usr/bin/pre-submitter ExecStart=/usr/bin/random-submitter Restart=always RestartSec=60 [Install] WantedBy=multi-user.target With the following path unit activation: [Path] PathExists=/data/certificate.crt PathExists=/data/submitter.ini [Install] WantedBy=multi-user.target Status tells us: ● submitter.service - Random Submitter Loaded: loaded (/data/systemd/submitter.service; enabled) Active: active (running) since Wed 2015-09-23 20:20:34 UTC; 13h ago Process: 6217 ExecStartPre=/usr/bin/pre-submitter (code=exited, status=0/SUCCESS) Main PID: 6225 (python3) CGroup: /system.slice/submitter.service └─6225 python3 /usr/bin/random-submitter Sep 24 10:17:53 modio systemd[1]: Started Random Submitter Service. Sep 24 10:17:53 modio systemd[1]: Started Random Submitter Service. Sep 24 10:17:54 modio systemd[1]: Started Random Submitter Service. Sep 24 10:17:54 modio systemd[1]: Started Random Submitter Service. Sep 24 10:17:54 modio systemd[1]: Started Random Submitter Service. Sep 24 10:17:54 modio systemd[1]: Started Random Submitter Service. Sep 24 10:17:54 modio systemd[1]: Started Random Submitter Service. Sep 24 10:17:54 modio systemd[1]: Started Random Submitter Service. Sep 24 10:17:54 modio systemd[1]: Started Random Submitter Service. Sep 24 10:17:54 modio systemd[1]: Started Random Submitter Service. And the logs contain... a TON.. of those "started" messages. journalctl --since -13h -u submitter |grep "Started" |wc -l 24341 So. What have I done wrong here? (Systemd 215 on Debian) -- 8362 CB14 98AD 11EF CEB6 FA81 FCC3 7674 449E 3CFC -- 8362 CB14 98AD 11EF CEB6 FA81 FCC3 7674 449E 3CFC _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel