Skip to content

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 Adding a working directory to the systemd fix this error.

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 …

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 …

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 i…