Systemd unit file, works on desktop, doesn't work on notebook

Here is the unit file in question:
``
[Unit]
Description=PeerGuardian Linux an IP Blocker
Documentation=man:pgld(1)
Documentation=file:///usr/share/doc/pgl/README.blocklists
After=network.target syslog.target
After=iptables.service ufw.service
StartLimitIntervalSec=0

[Service]
Type=forking
ExecStart=/usr/bin/pglcmd start
ExecReload=/usr/bin/pglcmd reload
ExecStop=/usr/bin/pglcmd stop
PIDFile=/run/pgld.pid
TimeoutStartSec=0
ReadWriteDirectories=/run /tmp /var/lib/pgl /var/log/pgl /var/spool/pgl

[Install]
WantedBy=multi-user.target
Also=pgl-update.timer

``
On the notebook, the pgl main window opens and I click the start button… On the desktop, the start button is replaced by the stop button, as the app is already running.

systemctl [--user] unitname
may give you some useful diagnostics. (–user if it’s a user unit).

Is the service enabled?
It looks like it is on one machine but not on the other.

systemctl status unitname

And what is the problem with this service?

I enabled it just now, and, of course, it works! Duh… Thanks for pointing it out :face_with_open_eyes_and_hand_over_mouth:

1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.