New answers tagged

0 votes
Accepted

Warning: some journal files were not opened due to insufficient permissions

tl;dr: Use sudo systemctl status .... When you use systemctl, you are using an agent to talk to systemd which is a root process. systemd may talk back to you, but it isn't going to tell you the ...
user avatar
  • 9,585
0 votes

Permission denied (publickey,password) on SSH connection when run as a service

I don't have an answer to fix your specific problem, but you can add verbose output to the ssh command to debug more relating to its use of ssh keys: rsync -avzh \ -e "ssh -vvv -i /home/...
user avatar
  • 204
1 vote
Accepted

nodejs server running from service giving error "Failed to execute command: Exec format error"

Solution was to adjust permissions on the myservice.service file, and then to add a WorkingDirectory value to the location the node application needed to be run from.
user avatar
0 votes

Systemd service - custom operation

I know it has been 3 years since this question was asked but I had the same question and I think I have an answer. You could create a systemd service and call it "foo-start-dump.service" ...
user avatar
  • 2,113
0 votes

Creating a systemd service in ubuntu that can be started/stopped

My executable started another process that was not killed in every exit event, so I created a new .service file and recompiled by executable. It now works perfectly.
user avatar
  • 13
1 vote
Accepted

Creating a systemd service in ubuntu that can be started/stopped

Here's an answer for the simplest case. All you need to do is create /etc/systemd/system/myservice.service. This is an INI file with a [Service] section. A very simple service looks like this: [...
user avatar
  • 9,585
1 vote
Accepted

Correct usage/location of tmpfs for a service in Raspberry Pi?

For a service, create another user to run it. Then use /dev/shm, or /tmp, for temporary storage.
user avatar
1 vote

systemd stops writing to StandardOutput file

I am experiencing the same issue in Ubuntu 20.04, but the content is actually being written in the begging of the file which makes it invisible to the tail command. This behavior is expected and ...
user avatar
  • 878

Top 50 recent answers are included