mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +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
|
EnvironmentFile=-/run/openelec/debug/avahi.conf
|
||||||
ExecStart=/usr/sbin/avahi-daemon -s $AVAHI_DEBUG
|
ExecStart=/usr/sbin/avahi-daemon -s $AVAHI_DEBUG
|
||||||
ExecReload=/usr/sbin/avahi-daemon -r
|
ExecReload=/usr/sbin/avahi-daemon -r
|
||||||
|
TimeoutStopSec=1s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -11,6 +11,7 @@ EnvironmentFile=-/run/openelec/debug/bluez.conf
|
|||||||
ExecStart=/usr/lib/bluetooth/bluetoothd $BLUEZ_ARGS $BLUEZ_DEBUG
|
ExecStart=/usr/lib/bluetooth/bluetoothd $BLUEZ_ARGS $BLUEZ_DEBUG
|
||||||
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
|
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
|
||||||
LimitNPROC=1
|
LimitNPROC=1
|
||||||
|
TimeoutStopSec=1s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=bluetooth.target
|
WantedBy=bluetooth.target
|
||||||
|
@ -11,6 +11,7 @@ EnvironmentFile=/storage/.cache/services/obexd.conf
|
|||||||
EnvironmentFile=-/run/openelec/debug/obexd.conf
|
EnvironmentFile=-/run/openelec/debug/obexd.conf
|
||||||
ExecStartPre=/bin/sh -c 'mkdir -p $OBEXD_ROOT'
|
ExecStartPre=/bin/sh -c 'mkdir -p $OBEXD_ROOT'
|
||||||
ExecStart=/usr/lib/bluetooth/obexd -r $OBEXD_ROOT $OBEXD_DEBUG
|
ExecStart=/usr/lib/bluetooth/obexd -r $OBEXD_ROOT $OBEXD_DEBUG
|
||||||
|
TimeoutStopSec=1s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=bluetooth.target
|
WantedBy=bluetooth.target
|
||||||
|
@ -9,6 +9,7 @@ EnvironmentFile=-/storage/.cache/services/sshd.conf
|
|||||||
ExecStartPre=/usr/sbin/sshd-keygen
|
ExecStartPre=/usr/sbin/sshd-keygen
|
||||||
ExecStart=/usr/sbin/sshd -D $SSH_ARGS
|
ExecStart=/usr/sbin/sshd -D $SSH_ARGS
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
TimeoutStopSec=1s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -6,6 +6,7 @@ After=syslog.target network.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
ExecStart=/usr/bin/rpcbind
|
ExecStart=/usr/bin/rpcbind
|
||||||
|
TimeoutStopSec=1s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -11,6 +11,7 @@ Type=forking
|
|||||||
PIDFile=/var/run/nmbd-smb.conf.pid
|
PIDFile=/var/run/nmbd-smb.conf.pid
|
||||||
ExecStart=/usr/bin/nmbd --configfile=/run/samba/smb.conf
|
ExecStart=/usr/bin/nmbd --configfile=/run/samba/smb.conf
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
TimeoutStopSec=1s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -12,6 +12,7 @@ PIDFile=/var/run/smbd-smb.conf.pid
|
|||||||
LimitNOFILE=16384
|
LimitNOFILE=16384
|
||||||
ExecStart=/usr/bin/smbd --configfile=/run/samba/smb.conf
|
ExecStart=/usr/bin/smbd --configfile=/run/samba/smb.conf
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
TimeoutStopSec=1s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -9,6 +9,7 @@ ConditionPathExists=/storage/.cache/services/crond.conf
|
|||||||
ExecStartPre=/bin/sh -c 'mkdir -p /storage/.cache/cron/crontabs'
|
ExecStartPre=/bin/sh -c 'mkdir -p /storage/.cache/cron/crontabs'
|
||||||
ExecStart=/sbin/crond -f -S
|
ExecStart=/sbin/crond -f -S
|
||||||
KillMode=process
|
KillMode=process
|
||||||
|
TimeoutStopSec=1s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -4,6 +4,7 @@ Description=Eventlirc server daemon
|
|||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/sbin/eventlircd -f --evmap=/etc/eventlircd.d --socket=/var/run/lirc/lircd --release=_UP
|
ExecStart=/usr/sbin/eventlircd -f --evmap=/etc/eventlircd.d --socket=/var/run/lirc/lircd --release=_UP
|
||||||
KillMode=process
|
KillMode=process
|
||||||
|
TimeoutStopSec=1s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -11,6 +11,7 @@ KillMode=process
|
|||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=1
|
RestartSec=1
|
||||||
StartLimitInterval=0
|
StartLimitInterval=0
|
||||||
|
TimeoutStopSec=1s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=graphical.target
|
WantedBy=graphical.target
|
||||||
|
@ -11,6 +11,7 @@ KillMode=process
|
|||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=1
|
RestartSec=1
|
||||||
StartLimitInterval=0
|
StartLimitInterval=0
|
||||||
|
TimeoutStopSec=1s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=graphical.target
|
WantedBy=graphical.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user