search for: execstartpost

Displaying 17 results from an estimated 17 matches for "execstartpost".

2019 Nov 21
3
Issue with "ExecStartPost" attribute in systemd daemon faile
...ommand Scheduler After=auditd.service systemd-user-sessions.service time-sync.target #OnFailure=crond-notify-email@%i.service [Service] EnvironmentFile=/etc/sysconfig/crond ExecStart=/usr/sbin/crond -n $CRONDARGS ExecReload=/bin/kill -HUP $MAINPID KillMode=process Restart=on-failure RestartSec=10s ExecStartPost=/bin/sh -c "/etc/systemd/system/test.sh" [Install] WantedBy=multi-user.target My "test.sh" is very simple: #!/bin/sh echo "CROND is restarting" | /usr/bin/mailx -s "crond failure notification" myemailaddress at mydomain As you can see, I have added lines &q...
2019 Nov 21
0
Issue with "ExecStartPost" attribute in systemd daemon faile
...-sessions.service time-sync.target > #OnFailure=crond-notify-email@%i.service > > [Service] > EnvironmentFile=/etc/sysconfig/crond > ExecStart=/usr/sbin/crond -n $CRONDARGS > ExecReload=/bin/kill -HUP $MAINPID > KillMode=process > Restart=on-failure > RestartSec=10s > ExecStartPost=/bin/sh -c "/etc/systemd/system/test.sh" > > [Install] > WantedBy=multi-user.target > My "test.sh" is very simple: > #!/bin/sh > echo "CROND is restarting" | /usr/bin/mailx -s "crond failure notification" myemailaddress at mydomain > &g...
2019 Nov 22
0
Issue with "ExecStartPost" attribute in systemd daemon fail
...mailto:centos-request at centos.org> escribi?: Message: 3 Date: Thu, 21 Nov 2019 14:41:25 +0100 From: Leon Fauster <leonfauster at googlemail.com><mailto:leonfauster at googlemail.com> To: centos at centos.org<mailto:centos at centos.org> Subject: Re: [CentOS] Issue with "ExecStartPost" attribute in systemd daemon faile Message-ID: <b58a12c2-5e5c-f7ce-d69d-d464538f1972 at gmail.com><mailto:b58a12c2-5e5c-f7ce-d69d-d464538f1972 at gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Am 21.11.19 um 14:28 schrieb Gesti? Servidors: Hello, I...
2019 Nov 22
1
Issue with "ExecStartPost" attribute in systemd daemon faile
...ommand Scheduler After=auditd.service systemd-user-sessions.service time-sync.target #OnFailure=crond-notify-email@%i.service [Service] EnvironmentFile=/etc/sysconfig/crond ExecStart=/usr/sbin/crond -n $CRONDARGS ExecReload=/bin/kill -HUP $MAINPID KillMode=process Restart=on-failure RestartSec=10s ExecStartPost=/bin/sh -c "/etc/systemd/system/test.sh" [Install] WantedBy=multi-user.target My "test.sh" is very simple: #!/bin/sh echo "CROND is restarting" | /usr/bin/mailx -s "crond failure notification" myemailaddress at mydomain As you can see, I have added lines &q...
2015 Dec 15
2
Dumb CentOS 7 question
Gordon Messmer wrote: > On 12/15/2015 10:42 AM, m.roth at 5-cent.us wrote: >> How do you restart Xorg? I can't find a target for it, and restarting >> graphical.target doesn't seem to do it. > > Restart gdm. Really? There's no systemd target to restart it, and graphical.target doesn't do it? Um..... mark
2015 Dec 15
4
Dumb CentOS 7 question
...;m using kdm...? mark > > # systemctl status gdm.service > gdm.service - GNOME Display Manager > Loaded: loaded (/usr/lib/systemd/system/gdm.service; enabled) > Active: active (running) since Sun 2015-11-01 17:15:13 UTC; 1 months > 13 days ago > Process: 1477 ExecStartPost=/bin/bash -c TERM=linux /usr/bin/clear > > /dev/tty1 (code=exited, status=0/SUCCESS) > Main PID: 1391 (gdm) > CGroup: /system.slice/gdm.service > ?? 1391 /usr/sbin/gdm > ??21476 /usr/libexec/gdm-simple-slave --display-id > /org/gnome/DisplayManager...
2015 Nov 17
3
firewalld being stupid
Nick Bright wrote: > On 11/17/2015 8:18 AM, James B. Byrne wrote: >> This behaviour is congruent with SELinux. One utility adjusts the >> permanent configuration, the one that will be applied at startup. >> Another changes the current running environment without altering the >> startup config. From a sysadmin point of view this is desirable since >> changes to a
2023 Nov 10
0
A proper way to modify battery.charge.low persistently
...ry.charge.low=90 -u my_user -p my_passwd eaton1 But... is there perhaps some systemic way where to configure a UPS variable? So that it gets configured first thing after a reboot? Turns out that there isn't. You need to enter this into a script somewhere. I was wondering about Systemd's ExecStartPost, but as the nut-server service unit specifies "type=forking", there is a risk that the ExecStartPost will run earlier than the nut-server has managed to start listening... which can be solved by some minimal further scripting, ...but I ended up just tucking that single command into /...
2015 Nov 17
0
firewalld being stupid
...tors of the service files and the daemons don't make use of these that's hardly systemd's fault. The best way is to use "Type=notify" which allows a daemon to actually report to systemd when it is done initializing. If the daemon doesn't support this then you can still use ExecStartPost to specify a command that verifies that the daemon indeed did start up correctly (and no the binary returning a code of 0 does not mean the service is actually up-and-running properly). Regards, Dennis
2015 Dec 15
0
Dumb CentOS 7 question
...target > doesn't do it? Um..... Why do you think that? # systemctl status gdm.service gdm.service - GNOME Display Manager Loaded: loaded (/usr/lib/systemd/system/gdm.service; enabled) Active: active (running) since Sun 2015-11-01 17:15:13 UTC; 1 months 13 days ago Process: 1477 ExecStartPost=/bin/bash -c TERM=linux /usr/bin/clear > /dev/tty1 (code=exited, status=0/SUCCESS) Main PID: 1391 (gdm) CGroup: /system.slice/gdm.service ?? 1391 /usr/sbin/gdm ??21476 /usr/libexec/gdm-simple-slave --display-id /org/gnome/DisplayManager/Displays/_0 ??2...
2023 Aug 17
1
Alternative to Local channel
Yes that are, but how do I use them to execute a part of the dialplan, once, when Asterisk starts up. module show like originate Module Description Use Count Status Support Level app_originate.so Originate call 0 Running core res_clioriginate.so Call origination and
2014 Sep 01
2
Runing multiple daemons with systemctl
Hi all, I am doing some tests with a CentOS7 vm image before to enter in our production environment. I need to migrate some sysvinit scripts to systemctl. In all of them I need to launch some daemons in the same init script. For example: a) start daemon1 b) if daemon1 returns no startup errors, launch daemon2 c) if daemon1 returns any startup error, doesn't start daemon2 and exit. Is it
2017 Jun 14
1
ganesha with gluster not starting
...mp) since Wed 2017-06-14 14:00:49 EDT; 4s ago Docs: http://github.com/nfs-ganesha/nfs-ganesha/wiki Process: 2402 ExecStop=/bin/dbus-send --system --dest=org.ganesha.nfsd --type=method_call /org/ganesha/nfsd/admin org.ganesha.nfsd.admin.shutdown (code=exited, status=0/SUCCESS) Process: 2389 ExecStartPost=/bin/bash -c prlimit --pid $MAINPID --nofile=$NOFILE:$NOFILE (code=exited, status=0/SUCCESS) Process: 2387 ExecStart=/bin/bash -c ${NUMACTL} ${NUMAOPTS} /usr/bin/ganesha.nfsd ${OPTIONS} ${EPOCH} (code=exited, status=0/SUCCESS) Main PID: 2388 (code=dumped, signal=ABRT) I note that when glusterd...
2015 Nov 17
1
firewalld being stupid
...files and the daemons > don't make use of these that's hardly systemd's fault. The best way > is to use "Type=notify" which allows a daemon to actually report to > systemd when it is done initializing. If the daemon doesn't support > this then you can still use ExecStartPost to specify a command that > verifies that the daemon indeed did start up correctly (and no the > binary returning a code of 0 does not mean the service is actually > up-and-running properly). > > Regards, Dennis > You may well be right. However for those of us who just want to...
2015 May 24
4
Systemd
...onyd which terminates ntpd. > > Disable chronyd. > Yes, indeedy. $systemctl status chronyd chronyd.service - NTP client/server Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled) Active: inactive (dead) since Sun 2015-05-24 11:39:21 PDT; 3h 31min ago Process: 845 ExecStartPost=/usr/libexec/chrony-helper add-dhclient-servers (code=exited, status=0/SUCCESS) Process: 808 ExecStart=/usr/sbin/chronyd -u chrony $OPTIONS (code=exited, status=0/SUCCESS) Main PID: 814 (code=exited, status=0/SUCCESS) CGroup: /system.slice/chronyd.service May 24 11:35:53 cobalt chronyd[...
2015 May 24
3
Systemd
On 5/23/2015 11:22 PM, Luigi Rosa wrote: > Kirk Bocek wrote on 24/05/2015 04:37: >> So I've built my first CentOS 7 host and am learning all the new ways >> of doing >> things. I setup and enabled ntpd but after a reboot I get: > > In CentOS 7 is bettere to use chrony, here's an howto > > http://linoxide.com/linux-command/chrony-time-sync/ > So
2018 May 18
4
Samba 4.8.2
Hi Stefan, Good question here. I'll explain, i'll reply to the list also, this info can also be handy for others . I always follow this approach for my DC upgrades. Start with the DC with FSMO roles then the others. 1) backup. I use virtual machines for the DC's, so i down all my DC's and take an offline snapshot. If you dont have virtual machines, i suggest the