HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux aritmodecarnaval.es 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //snap/core/17212/etc/rc1.d/K01ubuntu-fan
#!/bin/sh -
#
# ubuntu-fan Start/Stop Ubuntu FAN Networking
#
# chkconfig: 345 98 01
# description: Starts/Stops Ubuntu FAN Network Bridge
#
### BEGIN INIT INFO
# Provides: ubuntu-fan
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Required-Start: $network $remote_fs
# Required-Stop: $remote_fs $network
# Short-Description: Bring up/down Ubuntu FAN Network Bridge and Overlay
# Description: Bring up/down Ubuntu FAN Network Bridge and Overlay
### END INIT INFO

# Source function library.
. /lib/lsb/init-functions

# provide action() fallback
if ! type action >/dev/null 2>&1; then
    # Real basic fallback for sysvinit "action" verbage.
    action() {
        echo -n "$1	"
        shift
        "$@" && echo "OK" || echo "Failed"
    }
fi

start() {
    action $"Starting Ubuntu FAN network bridge: " /usr/lib/ubuntu-fan/fan-net start
}

stop() {
    action $"Stopping Ubuntu FAN network bridge: " /usr/lib/ubuntu-fan/fan-net stop
}

# See how we were called.
case "$1" in
    start)
        start
    ;;

    stop)
        stop
    ;;

    restart|reload|force-reload)
        $0 stop
        $0 start
    ;;

    *)
        echo "Usage: $0 {start|stop|restart|reload|force-reload}"
        exit 2
    ;;
esac

exit $?