mirror of
https://github.com/unraid/webgui.git
synced 2026-02-20 16:18:57 -06:00
scripts dutchification - batch 1
This commit is contained in:
@@ -56,6 +56,7 @@ avahid_running(){
|
||||
|
||||
avahid_start(){
|
||||
log "Starting $DAEMON..."
|
||||
local REPLY
|
||||
if avahid_running; then
|
||||
REPLY="Already started"
|
||||
else
|
||||
@@ -75,6 +76,7 @@ avahid_start(){
|
||||
|
||||
avahid_stop(){
|
||||
log "Stopping $DAEMON..."
|
||||
local REPLY
|
||||
if ! avahid_running; then
|
||||
REPLY="Already stopped"
|
||||
else
|
||||
|
||||
@@ -521,6 +521,7 @@ docker_container_stop(){
|
||||
|
||||
docker_service_start(){
|
||||
log "Starting $DAEMON..."
|
||||
local REPLY
|
||||
[[ -x $DOCKER ]] && REPLY= || REPLY="Failed"
|
||||
if [[ -z $REPLY ]]; then
|
||||
if ! mountpoint $DOCKER_ROOT &>/dev/null; then
|
||||
@@ -545,6 +546,7 @@ docker_service_start(){
|
||||
|
||||
docker_service_stop(){
|
||||
log "Stopping $DAEMON..."
|
||||
local REPLY
|
||||
# If there is no PID file, ignore this request...
|
||||
if [[ -r $DOCKER_PIDFILE ]]; then
|
||||
# Try to stop dockerd gracefully
|
||||
|
||||
@@ -14,6 +14,7 @@ DAEMON="Internet daemon"
|
||||
|
||||
inetd_start() {
|
||||
log "Starting $DAEMON..."
|
||||
local REPLY
|
||||
if [[ -x /usr/sbin/inetd ]]; then
|
||||
run /usr/sbin/inetd
|
||||
REPLY="Started"
|
||||
|
||||
@@ -42,6 +42,7 @@ nfsd_running(){
|
||||
|
||||
nfsd_start(){
|
||||
log "Starting $DAEMON..."
|
||||
local REPLY
|
||||
if nfsd_running; then
|
||||
REPLY="Already started"
|
||||
else
|
||||
@@ -98,6 +99,7 @@ nfsd_start(){
|
||||
|
||||
nfsd_stop(){
|
||||
log "Stopping $DAEMON..."
|
||||
local REPLY
|
||||
if ! nfsd_running; then
|
||||
REPLY="Already stopped"
|
||||
else
|
||||
|
||||
@@ -607,6 +607,7 @@ nginx_check(){
|
||||
|
||||
nginx_start(){
|
||||
log "Starting $DAEMON..."
|
||||
local REPLY
|
||||
if nginx_running; then
|
||||
REPLY="Already running"
|
||||
elif [[ ! -r $CONF ]]; then
|
||||
@@ -629,6 +630,7 @@ nginx_start(){
|
||||
|
||||
nginx_stop(){
|
||||
log "Stopping $DAEMON gracefully..."
|
||||
local REPLY
|
||||
if ! nginx_running; then
|
||||
REPLY="Already stopped"
|
||||
else
|
||||
@@ -647,6 +649,7 @@ nginx_stop(){
|
||||
|
||||
nginx_stop_forced(){
|
||||
log "Stopping $DAEMON forcibly..."
|
||||
local REPLY
|
||||
if ! nginx_running; then
|
||||
REPLY="Already stopped"
|
||||
else
|
||||
|
||||
@@ -46,6 +46,7 @@ ntpd_build(){
|
||||
|
||||
ntpd_start(){
|
||||
log "Starting $DAEMON..."
|
||||
local REPLY
|
||||
# read Unraid settings
|
||||
[[ -r $IDENT ]] && . <(fromdos <$IDENT)
|
||||
# if ntp not enabled, don't start ntp
|
||||
@@ -66,6 +67,7 @@ ntpd_start(){
|
||||
|
||||
ntpd_stop(){
|
||||
log "Stopping $DAEMON..."
|
||||
local REPLY
|
||||
if ! ntpd_running; then
|
||||
REPLY="Already stopped"
|
||||
else
|
||||
|
||||
@@ -36,6 +36,7 @@ rpc_running(){
|
||||
|
||||
rpc_start(){
|
||||
log "Starting $DAEMON..."
|
||||
local REPLY
|
||||
if rpc_running; then
|
||||
REPLY="Already started"
|
||||
else
|
||||
@@ -74,6 +75,7 @@ rpc_start(){
|
||||
|
||||
rpc_stop(){
|
||||
log "Stopping $DAEMON..."
|
||||
local REPLY
|
||||
if ! rpc_running; then
|
||||
REPLY="Already stopped"
|
||||
else
|
||||
|
||||
@@ -29,6 +29,7 @@ create_xconsole(){
|
||||
|
||||
rsyslogd_start(){
|
||||
log "Starting $DAEMON..."
|
||||
local REPLY
|
||||
if [[ -x /usr/sbin/rsyslogd ]]; then
|
||||
run /usr/sbin/rsyslogd -i $PIDFILE
|
||||
REPLY="Started"
|
||||
|
||||
@@ -113,6 +113,7 @@ samba_settings(){
|
||||
|
||||
samba_start(){
|
||||
log "Starting $DAEMON..."
|
||||
local REPLY
|
||||
if samba_running; then
|
||||
REPLY="Already started"
|
||||
else
|
||||
@@ -139,6 +140,7 @@ samba_start(){
|
||||
|
||||
samba_stop(){
|
||||
log "Stopping $DAEMON..."
|
||||
local REPLY
|
||||
if ! samba_running; then
|
||||
REPLY="Already stopped"
|
||||
else
|
||||
|
||||
@@ -39,6 +39,7 @@ sshd_build(){
|
||||
|
||||
sshd_start(){
|
||||
log "Starting $DAEMON..."
|
||||
local REPLY
|
||||
if sshd_running; then
|
||||
REPLY="Already started"
|
||||
else
|
||||
@@ -60,6 +61,7 @@ sshd_start(){
|
||||
}
|
||||
|
||||
sshd_stop(){
|
||||
local REPLY
|
||||
if ! sshd_running; then
|
||||
REPLY="Already stopped"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user