Skip to content
Advertisement

Tag: systemd

Problem with a Golang webapp and system service

I am trying to create a Golang server using the gin framework on ubuntu. It works fine when it is executed in the terminal after building it with go build and equally works well locally. Systemd I got this error Answer Add a working directory to the systemd to fix the error. The systemd WorkingDirectory defines the directory relative to

run script when chrony steps clock

I need to start a certain service after system clock was correctly stepped by crony. System time is maintained by chrony (chronyd (chrony) version 3.5 (+CMDMON +NTP +REFCLOCK +RTC -PRIVDROP -SCFILTER -SIGND +ASYNCDNS -SECHASH +IPV6 -DEBUG)). Chrony setup, if relevant, is: example of a “normal, tracking status” is: while “unsynchronized” (initial) status is: I seem to remember crony can call

Systemd – How to trigger another unit while reloading a service?

I’m currently facing the issue that I want to trigger a Systemd unit when another unit get reloaded – not restartet. This is what I achived so far: But that is only working using systemctl restart teleport. Reload doesn’t work. How can this be achived without touching the original teleport.service unit? Answer Found out that this can be easily achived

How to show hidden sysctl tunable?

I’m on a Yocto Linux distribution and I need to set the sysctl tunable kernel.panic_on_rcu_stall to 1. The problem is when I list the elements inside /proc/sys/kernel I have no panic_on_rcu_stall and if I try to set the option anyway I get the folowing error: I know that the key exist, we can see it on the Linux Kernel documentation,

Bash: Date-epoch with systemd

I execute the following line in a bash console. The content of my.log is as expected. Now I change the timestamp to epoch (format-code +%s). File is As expected again. But if I put this command line into systemd it would fail. produces Must be a problem with the format-code of date. If I remove the +%s then it is

What is a drop-in file? What is a drop-in directory? How to edit systemd service [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question I want to change how a custom systemd service works. This edits /etc/systemd/system/serviceName.d/override.conf file. Override.conf is called a drop-in file and serviceName.d/ is a drop-in

Advertisement