repo.or.cz
/
aur-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git]
/
ngetty-glibc
/
ngetty.rcd
blob
e0440eade2c6900a32f20484dee1c3992bea7224
1
#!/bin/bash
2
3
.
/
etc
/
rc.conf
4
.
/
etc
/
rc.d
/
functions
5
.
/
etc
/
conf.d
/
ngetty
6
7
PID
=
`pidof -o %PPID /sbin/ngetty`
8
case
$1
in
9
start
)
10
stat_busy
"Starting ngetty"
11
[
-z
"
$PID
"
] && /
sbin
/
ngetty
$NGETTY_TTYS
&
12
if
[
$?
-gt
0
];
then
13
stat_fail
14
else
15
add_daemon ngetty
16
17
fi
18
;;
19
stop
)
20
stat_busy
"Stopping ngetty"
21
killall ngetty
22
if
[
$?
-gt
0
];
then
23
stat_fail
24
else
25
stat_done
26
rm_daemon ngetty
27
fi
28
;;
29
*)
30
echo
"Usage:
$0
start|stop"
31
esac