search for: execstop

Displaying 20 results from an estimated 147 matches for "execstop".

2012 May 18
1
[Bug 788] New: Allow saving to/restoring from a file without shell redirection
...systemd. I'm maintaining the ipset package in Fedora, and it would be nice to provide users a way to have their ipsets automatically restored at boot time, and saved at shutdown. In systemd, a unit file provides a command line to run in order to start or stop the service with the ExecStart and ExecStop directives. However, there's no input/output redirection available in systemd, so I can't use: ExecStart=/usr/bin/ipset restore < /etc/ipset/ipset.save ExecStop=/usr/bin/ipset save > /etc/ipset/ipset.save One solution is to use instead: ExecStart=/bin/sh -c "/usr/bi...
2019 Feb 07
2
systemd
Hi All - I have a systemd service file to start my application. Part of my service file is: [Service] Type=forking ExecStart=/path to start ExecStop=/path to stop RemainAfterExit=yes This works fine "normally". However - when I do a "yum update; and reboot" my script detects a kernel change and now does a number of "recompiling" steps for drivers and such before starting my application. Somewhere along the way t...
2018 Jan 05
4
VM migration upon shutdown in centos 7
...########### [Unit] Description=vPreShutdownHook Requires=network.target Requires=libvirtd.service Requires=dbus.service Requires=glusterd.service Requires=glusterfsd.service DefaultDependencies=no Before=shutdown.target reboot.target [Service] Type=oneshot RemainAfterExit=true ExecStart=/bin/true ExecStop=/root/vm_migrate.sh [Install] WantedBy=multi-user.target ########## Command to migrate ############ /usr/bin/virsh migrate --verbose --p2p --tunneled --live --compressed --comp-methods "mt" --comp-mt-level 5 --comp-mt-threads 5 --comp-mt-dthreads 5 MY_VM qemu+ssh://root@$node2/syst...
2018 Jun 09
3
Problem with named.service
...nd, kcc, dnsupdate [root at pc ~]# systemctl status named.service● named.service - Berkeley Internet Name Domain (DNS)   Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)   Active: active (running) since Sat 2018-06-09 07:12:50 AST; 1min 17s ago  Process: 2822 ExecStop=/bin/sh -c /usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID (code=exited, status=0/SUCCESS)  Process: 2863 ExecStart=/usr/sbin/named -u named -c ${NAMEDCONF} $OPTIONS (code=exited, status=0/SUCCESS)  Process: 2859 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKI...
2018 Jun 09
0
Problem with named.service
...------------------ [root at pc ~]# systemctl status named.service ● named.service - Berkeley Internet Name Domain (DNS)    Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)    Active: active (running) since Sat 2018-06-09 10:00:53 AST; 27s ago   Process: 1821 ExecStop=/bin/sh -c /usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID (code=exited, status=0/SUCCESS)   Process: 2022 ExecStart=/usr/sbin/named -u named -c ${NAMEDCONF} $OPTIONS (code=exited, status=0/SUCCESS)   Process: 2018 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHEC...
2016 Oct 16
2
bind9 won't run
...root at dtdc03:~# systemctl status apparmor.service ● apparmor.service - LSB: AppArmor initialization Loaded: loaded (/etc/init.d/apparmor; bad; vendor preset: enabled) Active: active (exited) since Sun 2016-10-16 12:14:58 CDT; 13s ago Docs: man:systemd-sysv-generator(8) Process: 2197 ExecStop=/etc/init.d/apparmor stop (code=exited, status=0/SUCCESS) Process: 1547 ExecReload=/etc/init.d/apparmor reload (code=exited, status=123) Process: 2211 ExecStart=/etc/init.d/apparmor start (code=exited, status=0/SUCCESS) Oct 16 12:14:54 dtdc03 systemd[1]: Starting LSB: AppArmor initialization.....
2015 Apr 04
2
systemctl (again)
...t it was some progress. I ran systemctl daemon-reload and rebooted. It is still failing though: # systemctl status timidity timidity.service - timidity daemon Loaded: loaded (/etc/systemd/system/timidity.service; enabled) Active: failed (Result: exit-code) since Sat ... Process: 955 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=1/FAILURE) Process: 790 ExecStart=/usr/bin/timidity -iAD (code=exited, status=0/SUCCESS) Main PID: 790 (code=exited, status=0/SUCCESS) CGroup: /system.slice/timidity.service ...systemd[1]: Started timidity daemon. ...kill[955]: Usage: ......
2016 Aug 04
3
centos 7- boot doesn't wait for startup script to complete
...- boot doesn't wait for startup script to complete On Tue, Aug 02, 2016 at 12:56:21PM +0000, KM wrote: > # used to set up the Myservices onstartup > [Unit] > Description=Start and stop Myservices > > [Service] > Type=oneshot > ExecStart=/etc/init.d/Myservices start > ExecStop=/etc/init.d/Myservices stop > RemainAfterExit=yes > > [Install] > WantedBy=multi-user.target Reformatting so it is readable. What you probably want to do is to add something to the [Unit] section to make the completion of the be a requirement for the user login service.? Something lik...
2018 Mar 13
1
Workaround for bind9 reload bug : samba_dlz Ignoring duplicate zone
...Description=BIND Domain Name Server > Documentation=man:named(8) > After=network.target > Wants=nss-lookup.target > Before=nss-lookup.target > > [Service] > EnvironmentFile=/etc/default/bind9 > ExecStart=/usr/sbin/named -f $OPTIONS > ExecReload=/usr/sbin/rndc reload > ExecStop=/usr/sbin/rndc stop > > [Install] > WantedBy=multi-user.target > > > The correct workaround is edit, and add.. > systemctl edit bind9 > Add : > [Service] > ExecReload= > > > And done. > > Greetz, > > Louis -- Gruss Harry Jede
2018 Jun 08
1
Problem with named.service
...Check this example: [root at pc ~]# systemctl status named.service● named.service - Berkeley Internet Name Domain (DNS)   Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)   Active: active (running) since Thu 2018-06-07 21:15:06 AST; 10min ago  Process: 12495 ExecStop=/bin/sh -c /usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID (code=exited, status=0/SUCCESS)  Process: 12824 ExecStart=/usr/sbin/named -u named -c ${NAMEDCONF} $OPTIONS (code=exited, status=0/SUCCESS)  Process: 12820 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHEC...
2019 Aug 29
1
Problems joining station in domain
...lib/systemd/system/bind9.service; enabled; vendor > preset: enabled) > ? Drop-In: /etc/systemd/system/bind9.service.d > ? ? ? ? ? ???override.conf > ? ?Active: failed (Result: exit-code) since Wed 2019-08-28 17:25:59 > -03; 21min ago > ? ? ?Docs: man:named(8) > ? Process: 776 ExecStop=/usr/sbin/rndc stop (code=exited, > status=1/FAILURE) > ? Process: 752 ExecStart=/usr/sbin/named -f $OPTIONS (code=exited, > status=1/FAILURE) > ?Main PID: 752 (code=exited, status=1/FAILURE) > > ago 28 17:25:59 samba4-dc3 named[752]: using up to 4096 sockets > ago 28 17:25:5...
2015 Oct 09
0
NUT with openSUSE 13.2
...starts upsmon Power device driver controller, nut-driver.service, starts upsdrvctl The first two need to be enabled using Yast => System => Services Manager for them to start automatically when the box is turned on. nut-driver.service needs fixing. Replace ExecStart=/upsdrvctl start ExecStop=/upsdrvctl stop with ExecStart=/usr/lib/ups/driver/upsdrvctl start ExecStop=/usr/lib/ups/driver/upsdrvctl stop 2. On my box, openSUSE hangs for 30 seconds trying to shut down a WiFi connection. This increases the system shutdown time, so I increased offdelay and ondelay in ups.conf by 30 sec...
2015 Apr 04
4
systemctl (again)
...ough: >> >> # systemctl status timidity >> timidity.service - timidity daemon >> Loaded: loaded (/etc/systemd/system/timidity.service; >enabled) >> Active: failed (Result: exit-code) since Sat ... >> Process: 955 ExecStop=/bin/kill -s TERM $MAINPID >(code=exited, >> status=1/FAILURE) >> Process: 790 ExecStart=/usr/bin/timidity -iAD (code=exited, >> status=0/SUCCESS) >> Main PID: 790 (code=exited, status=0/SUCCESS) >> > ><snip> > >The process exite...
2016 Oct 16
1
bind9 won't run
...tus apparmor.service >> ● apparmor.service - LSB: AppArmor initialization >> Loaded: loaded (/etc/init.d/apparmor; bad; vendor preset: enabled) >> Active: active (exited) since Sun 2016-10-16 12:14:58 CDT; 13s ago >> Docs: man:systemd-sysv-generator(8) >> Process: 2197 ExecStop=/etc/init.d/apparmor stop (code=exited, >> status=0/SUCCESS) >> Process: 1547 ExecReload=/etc/init.d/apparmor reload (code=exited, >> status=123) >> Process: 2211 ExecStart=/etc/init.d/apparmor start (code=exited, >> status=0/SUCCESS) >> >> Oct 16 12:14:54...
2015 Apr 04
0
systemctl (again)
...gt; # systemctl status timidity >>> timidity.service - timidity daemon >>> Loaded: loaded (/etc/systemd/system/timidity.service; >>enabled) >>> Active: failed (Result: exit-code) since Sat ... >>> Process: 955 ExecStop=/bin/kill -s TERM $MAINPID >>(code=exited, >>> status=1/FAILURE) >>> Process: 790 ExecStart=/usr/bin/timidity -iAD (code=exited, >>> status=0/SUCCESS) >>> Main PID: 790 (code=exited, status=0/SUCCESS) >>> >> >><sni...
2016 Aug 02
2
centos 7- boot doesn't wait for startup script to complete
...type startup script that I am still using on CentOS 7.? I got it to run by creating the systemd service file... a simple one as shown below, for Myservices. # used to set up the Myservices onstartup[Unit]Description=Start and stop Myservices[Service]Type=oneshotExecStart=/etc/init.d/Myservices startExecStop=/etc/init.d/Myservices stopRemainAfterExit=yes[Install]WantedBy=multi-user.targetThis works. When the server starts Myservices is initiated.? However the boot keeps going. When I log in Myservices is still running.? it takes about 5 minutes to complete.? This is normal.? What is different is the bo...
2018 Jan 11
0
Re: VM migration upon shutdown in centos 7
...ed. Anyway, look at libvirt-guests.service file. Looks like the following lines cause systemd to wait for a command to finish: [Service] EnvironmentFile=-/etc/sysconfig/libvirt-guests # Hack just call traditional service until we factor # out the code ExecStart=@libexecdir@/libvirt-guests.sh start ExecStop=@libexecdir@/libvirt-guests.sh stop Type=oneshot RemainAfterExit=yes StandardOutput=journal+console TimeoutStopSec=0 > > > > On Wed, Jan 10, 2018 at 8:46 PM, Michal Privoznik <mprivozn@redhat.com> > wrote: > >> On 01/05/2018 12:00 PM, Raman Gupta wrote: >>&g...
2015 Jan 16
4
shutdown -h doesn't
I've got a fresh CentOS 7 test machine, fully patched. The command: shutdown -h now surprisingly does not halt the machine. Instead it reboots it. WTF? I found the following Debian discussion which seems to be the same issue: <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766338> However, removing kexec-tools in this case did not solve the problem. Nor does
2018 Jun 08
4
Problem with named.service
...Check this example: [root at pc ~]# systemctl status named.service● named.service - Berkeley Internet Name Domain (DNS)   Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)   Active: active (running) since Thu 2018-06-07 21:15:06 AST; 10min ago  Process: 12495 ExecStop=/bin/sh -c /usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID (code=exited, status=0/SUCCESS)  Process: 12824 ExecStart=/usr/sbin/named -u named -c ${NAMEDCONF} $OPTIONS (code=exited, status=0/SUCCESS)  Process: 12820 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHEC...
2017 Nov 20
1
Errors installing on Ubuntu 17.04
...dovecot.service - Dovecot IMAP/POP3 email server Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2017-10-05 14:08:56 BST; 17ms ago Docs: man:dovecot(1) http://wiki2.dovecot.org/ Process: 8880 ExecStop=/usr/bin/doveadm stop (code=exited, status=0/SUCCESS) Process: 8885 ExecStart=/usr/sbin/dovecot (code=exited, status=89) Main PID: 8729 (code=exited, status=0/SUCCESS) Oct 05 14:08:56 ash systemd[1]: Starting Dovecot IMAP/POP3 email server... Oct 05 14:08:56 ash dovecot[8885]: Error: socket() fa...