Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror

Comment Re:Surprise, surprise, surprise (Score 1) 162

#!/bin/bash
if [[ -z $1 ]]; then
    echo "Usage:  ${0##*/} (stop|start|restart) [daemon]"
    exit 1
fi
if [[ -z $2 ]]; then
    d=sarcasm
else
    d=$2
fi
case $(</proc/1/comm) in
    systemd)
        systemctl $1 $d.service
        ;;
    upstart)
        service $d $1
        ;;
    rinit)
        sv $1 $d
        ;;
    init)
        for s in {rc,init}{.d,}; do
            [[ -f /etc/$s/$d ]] && /etc/$s/$d $1
        done
        ;;
    *)

        if [[ $1 == @(stop|restart) ]]; then
            killall $d
            for i in {0..5}; do
                pidof $d &>/dev/null || break
            done
            [[ $? -eq 0 ]] && killall -9 $d
        fi
        if [[ $1 == @(start|restart) ]]; then
            pidof $d &>/dev/null || $d -D
        fi
        ;;
esac
if [[ $? -ne 0 ]]; then
    echo "FATAL:  Could not $1 $d service."
    exit 1
fi

Comment Why Is This a Bad Thing? (Score 1) 403

I do not understand the all the negativity behind the single-window mode, especially when it is an optional component and is not "forced upon" users without an alternative, save for using an older version for as long as it works and is maintained, waiting for or working on a fork, accepting the changes, or abandoning ship and seeking an alternative. As a user of a keyboard-driven tiling window manager that does not completely follow the WIMP model, I find the option of using a single window mode to be a welcome change.

Slashdot Top Deals

Stinginess with privileges is kindness in disguise. -- Guide to VAX/VMS Security, Sep. 1984

Working...