New answers tagged services
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 ...
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/...
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.
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" ...
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.
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:
[...
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.
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 ...
Top 50 recent answers are included
Related Tags
services × 930systemd × 357
linux × 149
ubuntu × 93
debian × 86
centos × 75
daemon × 57
sysvinit × 51
systemctl × 47
startup × 45
rhel × 44
shell-script × 37
networking × 34
boot × 30
process × 24
bash × 23
cron × 22
init-script × 22
ssh × 18
linux-mint × 17
fedora × 16
logs × 16
python × 15
mysql × 15
upstart × 15