01-12-2021, 04:29 PM
(01-12-2021, 03:06 PM)cody Wrote:I can check but I am not so sure....(01-12-2021, 02:16 PM)kop316 Wrote:(01-12-2021, 12:52 PM)cody Wrote:(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)
Code:mobian@mobian:/usr/libexec$ ls -l | grep mmsd
-rwxr-xr-x 1 root root 967936 Jan 12 15:15 mmsd
So it has permissions that I would expect.
I'm just wondering if the mmsd.service needs to have a user bit of 7 for read, write, and execute?
Looking in my /etc/systemd/system folder, there are a few .service files that do not have execute permissions.
I should have noted too that I do get the service loaded, but it is always "inactive" with an exit code of "0 (success)". So mmsd seems to load then immediately exit for some reason.