mailgraph has an init script, so I've copied the init script and the perl script to /usr/local/bin and made sure they were executable.
If I run
mailgraph-init start
the daemon starts as it should.
So I created a systemd script like this:
Code: Select all
[Unit]
Description=Mailgraph Service
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/mailgraph-init
TimeoutStartSec=0
[Install]
WantedBy=default.target
I also tried with
ExecStart=/usr/local/bin/mailgraph-init start
But it doesn't start as it should.
I did the systemctl daemon-reload of course.
What on earth have I misunderstood about this?