Skip to content
Advertisement

Tag: systemd

Avoiding kinit when cache still has credentials

I have a systemd service that calls a webservice to perform some maintenance periodically (every minute). The service looks like: now this destroy and reinitializes my kerberos ticket every time. the kinit can take up to 2-3 min. I would like to avoid that step and only kinit if needed. any ideas? Answer After researching a bit more, I realized

How to create a navigation menu in dotnet application?

I have created a console application which have a menu that allow me to navigate between the menu items. I handle the navigation logic in this method: here the full class. Now on windows all works well, but when I run this application on my linux with systemd I get: Unhandled Exception: System.InvalidOperationException: Cannot read key when either application does

How to use environment variables in a .service script

I have an elixir project on a linux server. I have created a .service script which will start and stop the application with the following commands The .service file looks something like this… It works as expected, the one exception being that it will not read the environment variables. I can give the application access to them by adding them

Detailed documentation for systemd’s sd-bus

I have some project which uses libdbus for IPC. The goal is to use systemd’s sd-bus instead of libdbus. There is documentation for sd-bus (here, here and etc), but that documentation doesn’t cover all aspects of D-Bus specification implementation. I spent a lot looking for at least any detailed explanation of sd-bus’ implementation, but didn’t find anything that could help

Python’s daemon PPID not equal to 1

Creating daemons in Linux is quite complex issue, but it’s very well documented in daemon(7) manual. Thankfully there is python-daemon module for Python 2 and 3 that implement PEP3143, so I’m using it. Here comes the question: when I was playing with python-daemon module I was surprised that daemon’s PPID is not 1. Why? Simple example: Content of test.log after

Stop timesyncd from polling hard coded Debian timeservers

The systemd-timesyncd daemon repeatedly tries to contact the following hard coded (compiled) time servers if neither an NTP server is specified manually nor one received via DHCP: Since I’m operating behind a corporate proxy, it will never be successful to reach these servers. Is there a way to prevent this senseless polling (without recompilation)? Answer If you aren’t allowed to

Starting a process using systemd on Linux: different behaviour using “su root -c”

We have a SignalR push server using Mono/Owin on a Linux Debian server. We perform a load test and we get a different behaviour according to how the push is started on systemd Working: ExecStart=/bin/su root -c ‘/usr/bin/mono –server mydaemon.exe -l:/var/run/mydaemon.pid’ Hanging after around 1k connections: ExecStart=/usr/bin/mono –server mydaemon.exe -l:/var/run/mydaemon.pid We may reproduce the different behaviour anytime: in the second

Systemctl dependency failure, stop dependent services

I have 2 services a.service and b.service. a.service is shown b.service Now, when i start b.service, i’m sure a.service will be started. During runtime, suddenly someone messes with /home/admin/run.sh and systemd is unable to start a.service (also systemctl status a.service shows failed as status). Now is there a option so that b.service can know that a.service is failed and it

Advertisement