mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
add TimeoutStopSec=1s (1sec) to some of our systemd services
... to avoid any possible timeouts. those services are fine to be force stopped by KILL after 1 sec.
This commit is contained in:
parent
68b0bd63be
commit
793ece7a91
@ -9,6 +9,7 @@ ConditionPathExists=/storage/.cache/services/avahi.conf
|
||||
EnvironmentFile=-/run/openelec/debug/avahi.conf
|
||||
ExecStart=/usr/sbin/avahi-daemon -s $AVAHI_DEBUG
|
||||
ExecReload=/usr/sbin/avahi-daemon -r
|
||||
TimeoutStopSec=1s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -11,6 +11,7 @@ EnvironmentFile=-/run/openelec/debug/bluez.conf
|
||||
ExecStart=/usr/lib/bluetooth/bluetoothd $BLUEZ_ARGS $BLUEZ_DEBUG
|
||||
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
|
||||
LimitNPROC=1
|
||||
TimeoutStopSec=1s
|
||||
|
||||
[Install]
|
||||
WantedBy=bluetooth.target
|
||||
|
@ -11,6 +11,7 @@ EnvironmentFile=/storage/.cache/services/obexd.conf
|
||||
EnvironmentFile=-/run/openelec/debug/obexd.conf
|
||||
ExecStartPre=/bin/sh -c 'mkdir -p $OBEXD_ROOT'
|
||||
ExecStart=/usr/lib/bluetooth/obexd -r $OBEXD_ROOT $OBEXD_DEBUG
|
||||
TimeoutStopSec=1s
|
||||
|
||||
[Install]
|
||||
WantedBy=bluetooth.target
|
||||
|
@ -9,6 +9,7 @@ EnvironmentFile=-/storage/.cache/services/sshd.conf
|
||||
ExecStartPre=/usr/sbin/sshd-keygen
|
||||
ExecStart=/usr/sbin/sshd -D $SSH_ARGS
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
TimeoutStopSec=1s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -6,6 +6,7 @@ After=syslog.target network.target
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/bin/rpcbind
|
||||
TimeoutStopSec=1s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -11,6 +11,7 @@ Type=forking
|
||||
PIDFile=/var/run/nmbd-smb.conf.pid
|
||||
ExecStart=/usr/bin/nmbd --configfile=/run/samba/smb.conf
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
TimeoutStopSec=1s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -12,6 +12,7 @@ PIDFile=/var/run/smbd-smb.conf.pid
|
||||
LimitNOFILE=16384
|
||||
ExecStart=/usr/bin/smbd --configfile=/run/samba/smb.conf
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
TimeoutStopSec=1s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -9,6 +9,7 @@ ConditionPathExists=/storage/.cache/services/crond.conf
|
||||
ExecStartPre=/bin/sh -c 'mkdir -p /storage/.cache/cron/crontabs'
|
||||
ExecStart=/sbin/crond -f -S
|
||||
KillMode=process
|
||||
TimeoutStopSec=1s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -4,6 +4,7 @@ Description=Eventlirc server daemon
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/eventlircd -f --evmap=/etc/eventlircd.d --socket=/var/run/lirc/lircd --release=_UP
|
||||
KillMode=process
|
||||
TimeoutStopSec=1s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -11,6 +11,7 @@ KillMode=process
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
StartLimitInterval=0
|
||||
TimeoutStopSec=1s
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
||||
|
@ -11,6 +11,7 @@ KillMode=process
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
StartLimitInterval=0
|
||||
TimeoutStopSec=1s
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
||||
|
Loading…
x
Reference in New Issue
Block a user