All Questions

Tagged with
Filter by
Sorted by
Tagged with
2
votes
1answer
63 views

Is there a way to restart acpid on reboot?

I've installed a package called thinkpad-scripts. Simply put its a bunch of scripts that activate various functionalities on thinkpad devices on linux that wouldn't work out of the box on fresh ...
1
vote
0answers
23 views

systemd service start after network online and time synced

I made a system service for a python script, I want it starts on boot after the server is online and the time is synced correctly. What do I have to add in .service file? I tried in [Unit] with ...
-1
votes
1answer
54 views

simple systemd service for execution of shell script

Im trying to start a simple .sh file and it says Failed at step EXEC spawning /etc/start.sh: No such file or directory Content of the gnome.service [Unit] Description=Description for sample script ...
0
votes
2answers
193 views

Separate systemd script for postgresql instances

I have PostgreSQL-11 installed on Ubuntu 18.04 via apt-get, and based from here, I managed to install 2 instances of postgreSQL on port 5432 and 5433. My Question is, can I have separate start-stop ...
1
vote
4answers
660 views

How do I get systemd to correctly manage a script with background processes?

I have a shell script which runs three programs in the background, a few in the foreground and then trap and wait, and I have set up a unit file so systemd can start it and restart it if it fails. I'...
1
vote
0answers
178 views

automated tool (or script) for cleaning systemd journal of corrupted files?

It is my understanding that the systemd journal cannot repair or fix errors revealed by: journalctl --verify Here's an example of an error I just saw. I routinely see errors like this on all the ...
1
vote
1answer
1k views

Run a script just before poweroff of reboot

Been pulling my hair out over this one for the last two weeks. I can't for the life of me figure out how to get this working: The situation I'm running a Debian 9 server with a couple of VirtualBox ...
0
votes
1answer
581 views

How to Make a script act on a USB drive when it is mounted [duplicate]

Ok here is what I am trying to accomplish, I want to configure mutliple systems to have a script start when ever any usb stick is mounted and then if a specific folder is on the usb stick copy its ...
1
vote
2answers
114 views

How check flags on systemd?

I try run clickhouse on old CPU, but get error: Illegal instruction Clickhouse required CPU flag SSE 4.2. How check flags on systemd ? Or how write this block on systemd without run bash script? ...
2
votes
0answers
851 views

Converting script from init to systemd

I am moving from Ubuntu 11 to 16, and would like to convert custom-made scripts to work with Ubuntu 16 I have started and completed First init script but need a bit of help on Second init script. I ...
2
votes
1answer
492 views

Integration of afuse user-level automounter with sshfs as a systemd service spawned from login for local users

To facilitate working with remote files, I setup afuse with sshfs to run from .bashrc of local users. It works, after bash init all remote trees from ~/.ssh/config/ are mounted on-demand under ~/scp/, ...
1
vote
0answers
94 views

Systemd and controlling network settings

I'm trying to figure out best way to control network settings in best way possible in real time. My current plan is this: Start ip -s -d -o monitor with systemd and write its output to file ...
0
votes
1answer
122 views

Mysql init.d to systemd

I have two mysql instances on a centos 7 machine. init.d handles start on boot. problem is, only one instance starts on boot. both instances uses two different ports. Can someone help me with how to ...
1
vote
1answer
99 views

migrating to systemd a startup-shutdown script that works with tmpfs and bindmounts

BACKGROUND INFORMATION : I have an init script that allows me to mount a folder to tmpfs, while bind-mounting the folder on drive to another location, so I can sync the contents (on startup, shutdown,...
2
votes
2answers
5k views

RHEL 7 how run longtime script before shutdown/reboot systemd

I'm trying to found solution how run script before shutdown/reboot is initiated in RedHat7. I need to correctly shutdown SAP database when I'm shuting down or rebooting server. Script for SAP ...
6
votes
2answers
5k views

script can't write to systemd journal

to make it short: I want to write to the systemd journal from a script. printf "%s\n%s\n%s\n" CODE_FILE=/etc/zsh/zprofile CODE_LINE=31 MESSAGE="could not read /etc/dircolors" | logger --journald ...
4
votes
1answer
2k views

Systemd Service Script Not Echoing

I've recently setup Fedora 22 onto a machine and it's using the systemd init system. I've been reading up on it and now I need to create a systemd start up script for postgresql For testing I ...
14
votes
3answers
31k views

Systemd postgresql start script

I'm in the process of installing postgresql onto a second server Previously I installed postgresql and then used the supplied script ./contrib/start-scripts/linux Placed into the correct dir # cp ....
2
votes
1answer
1k views

Systemd user specific service and timer

I have installed arch recently and added a few of my own services, for example the acpi_call commands and such. Now I want to create a systemd service that runs every 5 minutes and execute a script. ...
1
vote
1answer
80 views

Possible to deliver centrally configured login scripts on Linux?

In Windows you can assign login scripts to users which run whenever they log into a system which allowing admins to do things like map drives/printers and generally do anything for which there isn't a ...
46
votes
1answer
73k views

Convenient way to check if system is using systemd or sysvinit in BASH? [duplicate]

I am defining common bash files which I want to use across different distributions. I need a way to check if system is using systemd or sysvinit (/etc/init.d/). I need this so I run appropriate ...