Sha256: 9a862d9d66559b518fee2e4a3c62b6687f4391247a2db7362d537baf3f9fff3c

Contents?: true

Size: 697 Bytes

Versions: 19

Compression:

Stored size: 697 Bytes

Contents

#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

depend() {
    after net
}

start() {
    ebegin "Starting runsvdir"
    start-stop-daemon --start --exec /usr/bin/runsvdir \
        --background --make-pidfile \
        --pidfile /var/run/runsvdir.pid -- <%= node.runit.sv_dir %>
    eend $?
}

stop() {
    local ret1 ret2
    ebegin "Stopping runsvdir"
    start-stop-daemon --stop --oknodo --pidfile /var/run/runsvdir.pid
    ret1=$?
    eend ${ret1}

    ebegin "Stopping services and logging"
    sv shutdown -w 10 <%= node.runit.sv_dir %>/*
    ret2=$?
    eend ${ret2}

    return $((ret1+ret2))
}

Version data entries

19 entries across 17 versions & 7 rubygems

Version Path
from-scratch-0.7.0 cookbooks/runit/templates/gentoo/runit-start.sh.erb
from-scratch-0.6.0 cookbooks/runit/templates/gentoo/runit-start.sh.erb
from-scratch-0.5.0 cookbooks/runit/templates/gentoo/runit-start.sh.erb
agile_solo-0.1.0 spec/chef_repo/cookbooks/runit/templates/gentoo/runit-start.sh.erb
vagrant-openstack-0.0.4 cookbooks/runit/templates/gentoo/runit-start.sh.erb
vagrant-openstack-0.0.4 tmp/librarian/cache/source/chef/site/877777683730772c36b1e6a3fc3aa2c3/runit/version-uri/9594f6a763869a82f81ffbb8d4c6523b/package/templates/gentoo/runit-start.sh.erb
ciborg-3.0.0 chef/travis-cookbooks/ci_environment/runit/templates/gentoo/runit-start.sh.erb
ciborg-3.0.0 chef/travis-cookbooks/worker_host/runit/templates/gentoo/runit-start.sh.erb
lobot-2.1.0 chef/travis-cookbooks/worker_host/runit/templates/gentoo/runit-start.sh.erb
server_maint-0.0.8 lib/cookbooks/runit/templates/gentoo/runit-start.sh.erb
server_maint-0.0.7 lib/cookbooks/runit/templates/gentoo/runit-start.sh.erb
server_maint-0.0.6 lib/cookbooks/runit/templates/gentoo/runit-start.sh.erb
server_maint-0.0.5 lib/cookbooks/runit/templates/gentoo/runit-start.sh.erb
server_maint-0.0.4 lib/cookbooks/runit/templates/gentoo/runit-start.sh.erb
server_maint-0.0.3 lib/cookbooks/runit/templates/gentoo/runit-start.sh.erb
lobot-2.0.0pre chef/travis-cookbooks/worker_host/runit/templates/gentoo/runit-start.sh.erb
server_maint-0.0.2 lib/cookbooks/runit/templates/gentoo/runit-start.sh.erb
lobot-1.0.pre chef/travis-cookbooks/worker_host/runit/templates/gentoo/runit-start.sh.erb
rails-up-0.0.1 templates/chef/cookbooks/runit/templates/gentoo/runit-start.sh.erb