Skip to content
Advertisement

Tag: systemd

PostgreSQL 9.5 doesn’t start after reboot with systemd

I’m having a problem with PostgreSQL 9.5+173 on Ubuntu 16.04 and I happened to stumble across the following threads in my research that somewhat describes the behavior I’m seeing: https://www.postgresql.org/message-id/CAFyxdeT%2B%3Dx-d0oNbFPoe%2B4xnt0Qdfi%2BzAEn%2BrQmEK0AZbJFRtg%40mail.gmail.com https://www.postgresql.org/message-id/562E4453.5090803%40aklaver.com Long story short I have a fresh install of Ubuntu 16 with nothing on it and PostgreSQL running. I’ve stopped PostgreSQL changed the data directory and port and a

Converting watch into a unit file systemd

I’ve got a shell script as follows ss.sh The requirement is that I need to use this script with the watch command. And I’d like to make this into a systemctl service. I did it as so. sc.sh And in my /etc/systemd/system, log_info.service When I run systemctl start log_info.service, It runs but not continuously the way I’d like it to.

fail2ban regex stopped working [Debian 8 – Jessie]

So after my last apt-get update && apt-get upgrade && apt-get dist-upgrade my Fail2Ban got upgraded to 0.9.5 without any problems and I double checked the configurations but it seems as if it’s not working anymore. Here are some logs from failed logins in my /var/log/auth.log Normally such a try should be recognized by fail2ban. I double checked the fail2ban

Detect IP-Address change on an interface

I would like to trigger a service when a change of an ip address on a specific interface occurs. Is there a target for this or some other method I am not aware of to achieve this using systemd on Linux (Kernel 3.19)? The service would be used to send a SIGNAL to a defined process. The Linux is running

Bash Brace Expansion in Systemd ExecStart

The following test is in CentOS 7.1. Create the following file test.service in /usr/lib/systemd/system/ and execute systemctl daemon-reload; systemctl restart test; systemctl status test -l There is no output of the value as the ${a} does not substitute as the word hello world, until it is changed echo ${a} into echo $a : Work echo $${a}: Work The $$ means

Trigger CURL Request after boot using systemd

I’m trying to create a service that will trigger every time a raspberry pi boots. Currently the service runs a really simple script that sends a POST request to a web service endpoint I control. I can trigger said script manually and that part all works perfectly. I’m struggling with the next step which is to get that script to

how to make sysfs changes persistent in centos 7 (systemd)

Trying to fix up the fn keys on my apple keyboard on CentOS 7, I’ve set and yet after a reboot Suggestions on the internet include running update-initramfs, which doesn’t seem to exist on Centos 7, and doing the “echo 2 >> /sys/module/hid_apple/parameters/fnmode” in /etc/rc.local, which of course doesn’t exist at all any more under systemd. What’s the right way

Advertisement