Displaying 20 results from an estimated 38 matches for "restartsec".
Did you mean:
restarted
2019 Nov 21
3
Issue with "ExecStartPost" attribute in systemd daemon faile
...]
Description=Command 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 h...
2019 Nov 22
1
Issue with "ExecStartPost" attribute in systemd daemon faile
...[Unit]
Description=Command Scheduler
After=auditd.service systemd-user-sessions.service time-sync.target
OnFailure=crond-notify-email.service
[Service]
EnvironmentFile=/etc/sysconfig/crond
ExecStart=/usr/sbin/crond -n $CRONDARGS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target
* crond-notify-email.service:
* [Unit]
Description=crond failure email notification
After=crond.service
Requires=crond.service
[Service]
Type=oneshot
ExecStart=/etc/systemd/system/mail-notification.sh
* /etc/systemd/system/mail-notification...
2016 Feb 23
2
Change machine name without a reboot?
> From: Reindl Harald
>
> besides that you did not provide the info "embedded system" -
> when you
> have systemd you also have "systemctl restart
> whatever.service" and in
> PHP it would be passthru('command')
>
> you don't know how you restart a service via CLI - seriously?
I know how to do it through systemctl, but I was
2017 Mar 14
3
Relaiable ssh tunnel via systemd
...;ExitOnForwardFailure yes" -o "ServerAliveInterval 60" -N -R 40443:installserver:40443 -R
8080:installserver:8080
ExecStartPre=-/usr/bin/ssh tunnel@%i "for pid in $$(ps -u tunnel | grep sshd| cut -d' ' -f1); do kill -9 $$pid; echo
kill old ssh process p
Restart=always
RestartSec=5s
StartLimitInterval=0
[Install]
WantedBy=multi-user.target
}}}
Unfortunately on some hosts we see this warning again and again:
Mar 13 23:11:14 remotehost sshd[10938]: error: bind: Address already in use
Mar 13 23:11:14 remotehost sshd[10938]: error: channel_setup_fwd_listener: cannot listen t...
2019 Nov 21
0
Issue with "ExecStartPost" attribute in systemd daemon faile
...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" myemailaddre...
2019 Nov 22
0
Issue with "ExecStartPost" attribute in systemd daemon fail
...]
Description=Command 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 h...
2016 Feb 23
0
Change machine name without a reboot?
...ithin my own service
> (written in C), without resorting to fork/exec* to call systemctl
why do you need it?
sounds more "i like it"
systemctl is the interface in doubt
"it doesn't get restarted" - because you did not tell systemd to do so
mine does.....
Restart=always
RestartSec=1
____________________________________
[root at srv-rhsoft:~]$ cat /etc/systemd/system/smb.service
[Unit]
Description=Samba SMB Daemon
[Service]
Type=forking
LimitNOFILE=32768
ExecStart=/usr/sbin/smbd -D
Restart=always
RestartSec=1
Nice=19
PrivateTmp=yes
PrivateDevices=yes
CapabilityBoundingSet=C...
2020 Sep 22
1
starting stoping samba 4.11
...> Requires=network-online.target network-up.service
>
> [Service]
> Type=notify
> NotifyAccess=all
> LimitNOFILE=32768
> ExecStart=/usr/sbin/smbd --foreground --no-process-group
> ExecReload=/usr/bin/kill -HUP $MAINPID
> PermissionsStartOnly=true
> Restart=always
> RestartSec=1
> Nice=19
>
> PrivateTmp=yes
> PrivateDevices=yes
> ProtectKernelTunables=yes
> ProtectKernelModules=yes
> ProtectControlGroups=yes
> MemoryDenyWriteExecute=yes
> CapabilityBoundingSet=CAP_CHOWN CAP_SETGID CAP_SETUID CAP_DAC_OVERRIDE
> CAP_NET_BIND_SERVICE CAP_IPC_LO...
2020 Sep 21
4
starting stoping samba 4.11
Hello I am using samba Version 4.11.2 compiled.
To start the daemon I using
/samba10/samba-4.11.2/bin/samba -s /etc/samba/smb.conf
To stop correctly, what is recommended ?
Actually I using kill -9 ...
Regards.
2014 Oct 27
1
tinydns exceeds "holdoff time" on startup under CentOS 7
Hello listmates,
Somehow or other my DNS services that are part of
the ndjbdns-1.06-1.el7.x86_64 package would not start properly at startup.
When I then start them up using systemctl:
systemctl start dnscache
systemctl start tinydns
they start just fine.
>From the log I got the following for tinydns:
Oct 24 15:01:43 ns99 tinydns[1867]: tinydns: version 1.06: starting: Oct-24
2014 15:01:43
2018 Sep 27
4
Upgrade 4.8 to 4.9 with Backend-Change to lmdb?
Hi Rowland,
>>> - Option 1: ( my personal choice, because this keeps thing in sight
>>> )
>>> - ( Domain Member settings and/or Stand-Alone installs )
>>> - Configure smb.conf ( make sure you have configured the idmap
>>> settings. ) # - You must set a DOMAIN backend configuration, see
>>> below idmap config * : backend = tdb
>>>
2021 Jan 07
1
HCI Cluster - CentOS8 to Streams Upgrade Broken
...ne-ha/ovirt-ha-broker'
Jan 7 09:48:03 thor systemd[1]: ovirt-ha-broker.service: Main process
exited, code=exited, status=1/FAILURE
Jan 7 09:48:03 thor systemd[1]: ovirt-ha-broker.service: Failed with
result 'exit-code'.
Jan 7 09:48:04 thor systemd[1]: ovirt-ha-broker.service: Service
RestartSec=100ms expired, scheduling restart.
Jan 7 09:48:04 thor systemd[1]: ovirt-ha-broker.service: Scheduled restart
job, restart counter is at 44569.
Jan 7 09:48:04 thor systemd[1]: Stopped oVirt Hosted Engine High
Availability Communications Broker.
Jan 7 09:48:04 thor systemd[1]: Started oVirt Hoste...
2020 Apr 06
2
CentOS 8.1 cron does not send mail
On 6 Apr 2020, at 12:21, Stephen John Smoogen wrote:
> On Mon, 6 Apr 2020 at 04:16, Tobias Kirchhofer <collect at shift.agency>
> wrote:
>
>> On 5 Apr 2020, at 21:20, Tobias Kirchhofer wrote:
>>
>>>>>> we experience difficulties with crond behaviour sending mail
>>>>>> since
>>>>>> CentOS 8.1. The cron job is the
2018 Sep 27
1
Upgrade 4.8 to 4.9 with Backend-Change to lmdb?
...e smbd and which we can change to avoid this.
> Im now testing a bit to these orders as other temp workaround.
> But without risking a not starting smbd if winbind is running.
> Im testing with.
>
> [Unit]
> PartOf=
> BindsTo=
>
> [Service]
> Restart=on-failure
> RestartSec=30s
>
>> The problem that Louis has with installing samba, doesn't have anything
>> to do with those lines. It is that smbd will not run on a standalone
>> server if winbind is already running, stop winbind, make no changes
>> (i.e. don't add the lines Louis sugge...
2020 Sep 21
0
starting stoping samba 4.11
...Description=Samba SMB Daemon
After=network-up.service
Requires=network-online.target network-up.service
[Service]
Type=notify
NotifyAccess=all
LimitNOFILE=32768
ExecStart=/usr/sbin/smbd --foreground --no-process-group
ExecReload=/usr/bin/kill -HUP $MAINPID
PermissionsStartOnly=true
Restart=always
RestartSec=1
Nice=19
PrivateTmp=yes
PrivateDevices=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectControlGroups=yes
MemoryDenyWriteExecute=yes
CapabilityBoundingSet=CAP_CHOWN CAP_SETGID CAP_SETUID CAP_DAC_OVERRIDE
CAP_NET_BIND_SERVICE CAP_IPC_LOCK CAP_SYS_CHROOT
SystemCallFilter=@system-servi...
2020 Apr 06
0
CentOS 8.1 cron does not send mail
...c/systemd/system with
[Unit]
Description=Command Scheduler
After=auditd.service systemd-user-sessions.service time-sync.target
sssd.service
[Service]
EnvironmentFile=/etc/sysconfig/crond
ExecStart=/usr/sbin/crond -n $CRONDARGS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
RestartSec=30s
[Install]
WantedBy=multi-user.target
# ====
would fix the race. My apologies for not being clearer.
> It is a kind of race condition which takes place only in the beginning
> when sssd is set. Usually crond is in this use case already running,
> because it is part of (our) base...
2018 Aug 21
2
openssh 7.6 and 7.7 on Oracle Linux 7 (compiled from source) doesn't start correctly with systemd
...ation=man:sshd(8) man:sshd_config(5)
After=network.target sshd-keygen.service
Wants=sshd-keygen.service
[Service]
Type=notify
PIDFile=/var/run/sshd.pid
EnvironmentFile=/etc/sysconfig/sshd
ExecStart=/usr/local/sbin/sshd $OPTIONS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
RestartSec=42s
[Install]
WantedBy=multi-user.target
OPTIONS get's picked up from /etc/sysconfig/sshd and has "-D -4" as the
options. systemctl start sshd hangs and it seems like openssh isn't
notifying systemd that it's started. For awhile, it seemed like sshd
wasn't writing it...
2017 Jun 28
3
systemd services and Restart?
I've been trying out the Restart= option in some of my own systemd
service unit files - which appears to work fine
However, I notice that this option is only used in a few OS provided
service unit files - and was wondering about the wisdom of adding this
capability to other daemons/services? (e.g. chronyd or ntpd, crond,
rpcbind, etc, etc) - not that these daemons are likely to crash and
2020 Apr 06
2
CentOS 8.1 cron does not send mail
...Scheduler
> After=auditd.service systemd-user-sessions.service time-sync.target
> sssd.service
>
> [Service]
> EnvironmentFile=/etc/sysconfig/crond
> ExecStart=/usr/sbin/crond -n $CRONDARGS
> ExecReload=/bin/kill -HUP $MAINPID
> KillMode=process
> Restart=on-failure
> RestartSec=30s
>
> [Install]
> WantedBy=multi-user.target
>
> # ====
>
> would fix the race. My apologies for not being clearer.
Just wondering here, if the system crond.service file is being
modified/fixed with an update by rpm package, will the custom file in
/etc/systemd/system also b...
2015 Jan 10
3
Dovecot on Fedora 20 or 21
Hello,
Is anyone running Dovecot on either a Fedora 20 or 21 system? I'm
having an issue, on a system reboot, which I admit does not happen
often, Dovecot fails to start in the systemctl list, output is status
failed. The issue seems to be Dovecot can not bind to the ipv6
address. Now later if I manually log in to the box and start dovecot
it works just fine no problems. I've googled and