]> git.pld-linux.org Git - projects/rc-scripts.git/blame - rc.d/init.d/local
Drop all Upstart support
[projects/rc-scripts.git] / rc.d / init.d / local
CommitLineData
1d53fdda
ER
1#!/bin/sh
2#
128a6b04 3# local Invoke custom scripts at startup
1d53fdda
ER
4# chkconfig: 2345 99 01
5#
6# description: This script will be executed *after* all the other init \
7# scripts. You can put your own initialization stuff in here if you don't \
8# want to do the full Sys V style init stuff.
9#
1d53fdda 10
edd28c9b
JR
11# Source function library.
12. /etc/rc.d/init.d/functions
b4a200b2 13
1d53fdda
ER
14# See how we were called.
15case "$1" in
16 start)
2a43ff85 17 msg_starting "rc.local"
34868832 18 . /etc/rc.d/rc.local
2a43ff85 19 ok
ff285d1b 20 touch /var/lock/subsys/local
1d53fdda
ER
21 ;;
22 stop)
354b37ce 23 rm -f /var/lock/subsys/local >/dev/null 2>&1
34868832
ER
24 ;;
25 status)
26 if [ -f /var/lock/subsys/local ]; then
27 nls 'rc.local has been started'
28 else
29 nls 'rc.local has not been started'
30 fi
1d53fdda
ER
31 ;;
32 *)
34868832 33 msg_usage "$0 {start|stop|status}"
5afa7275 34 exit 3
1d53fdda
ER
35esac
36
37exit 0
This page took 0.07551 seconds and 4 git commands to generate.