• [^] # Re: systemd

    Posté par (site web personnel) . En réponse à la dépêche Petit état de l'art des systèmes d'initialisation (1). Évalué à 4.

    Ça doit être possible, vu que certains scripts sont réduits au strict minimum. Par exemple, on peut trouver pour umurmur :

    #!/sbin/runscript
    # Copyright 1999-2013 Gentoo Foundation
    # Distributed under the terms of the GNU General Public License v2
    # $Header: /var/cvsroot/gentoo-x86/media-sound/umurmur/files/umurmurd.initd,v 1.1 2013年06月20日 09:10:29 polynomial-c Exp $
    description="umurmurd - A minimalistic mumble server"
    pidfile="/run/umurmurd/umurmurd.pid"
    command="/usr/bin/umurmurd"
    command_args="-c /etc/umurmur/umurmur.conf -p ${pidfile} ${UMURMURD_OPTS}"
    start_stop_daemon_args="-p ${pidfile} -w 100"
    depend() {
     need net
     use logger
    }
    start_pre() {
     checkpath -d -o murmur ${pidfile%/*}
    }