Hlavní navigace

Názor k článku Nebojte se systemd: co to je a co umí? od martin.k - tak se mrkni, jak vypadaji init skipty v...

  • Článek je starý, nové názory již nelze přidávat.
  • 25. 5. 2016 9:29

    martin.k (neregistrovaný)

    tak se mrkni, jak vypadaji init skipty v bsd:

    #!/bin/sh
    #
    # $FreeBSD$
    #

    # PROVIDE: inetd
    # REQUIRE: DAEMON LOGIN FILESYSTEMS
    # KEYWORD: shutdown

    . /etc/rc.subr

    name="inetd"
    desc="Internet \"super-server\""
    rcvar="inetd_e­nable"
    command="/usr/sbin/${na­me}"
    pidfile="/var/run­/${name}.pid"
    required_files="/et­c/${name}.con­f"
    extra_commands="re­load"

    load_rc_config $name
    run_rc_command "$1"

    ... a je to furt shell. to, ze v nekterych distibucich bylo zvykem prasit superdlouhy init skripty se spoustou boilerplate kodu neni problem initu, ale tech distribuci.