01-12-2021, 12:52 PM
(01-12-2021, 12:03 PM)kop316 Wrote: So if anyone has experience with systemd, help would be appreciated.
I am making a systemd serve with:
Code:[Unit]
Description=Multimedia Message Service Daemon
Wants=network.target
After=syslog.target network-online.target
[Service]
Type=simple
ExecStart=/usr/libexec/mmsd
Restart=always
RestartSec=10
User=root
KillMode=process
[Install]
WantedBy=multi-user.target
and I put it here: /etc/systemd/system/mmsd.service (it is owned by root, and has permissions of 640)
I attempt to enable it and start it with:
Code:sudo systemctl enable mmsd
sudo systemctl daemon-reload
sudo systemctl start mmsd
But mmsd imediately stops.
When installing the normal way. I can manually start it with:
and it runs as I expect it to.Code:$/usr/libexec/mmsd
I'm by no means an expert, but wouldn't you want permissions to be 740? So that root has the ability to execute the service as well?