]>
Commit | Line | Data |
---|---|---|
64187e11 AF |
1 | #!/bin/sh |
2 | ######################################################################## | |
3 | # Begin $rc_base/init.d/sane | |
4 | # | |
5 | # Description : Sane Network deamon | |
6 | # | |
7 | # Authors : Arne Fitzenreiter (arne_f@ipfire.org) | |
8 | # | |
9 | # Version : 01.00 | |
10 | # | |
11 | # Notes : runs sanedloop ibecause saned is intended | |
12 | # for use with (x)inet.d | |
13 | # | |
14 | ######################################################################## | |
15 | ||
16 | . /etc/sysconfig/rc | |
17 | . ${rc_functions} | |
18 | ||
19 | case "${1}" in | |
20 | start) | |
21 | boot_mesg "Starting sane - network scanner deamon..." | |
22 | killall sanedloop > /dev/nul 2&>1 | |
23 | killall saned > /dev/nul 2&>1 | |
24 | /usr/local/bin/sanedloop & | |
25 | evaluate_retval | |
26 | ;; | |
27 | ||
28 | stop) | |
29 | boot_mesg "Stopping sane - network scanner deamon..." | |
30 | killall sanedloop > /dev/nul 2&>1 | |
31 | killall saned > /dev/nul 2&>1 | |
32 | echo_ok | |
33 | ;; | |
34 | ||
35 | restart) | |
36 | ${0} start | |
37 | ;; | |
38 | ||
39 | status) | |
40 | statusproc /usr/bin/sanedloop | |
41 | statusproc /usr/sbin/saned | |
42 | ;; | |
43 | ||
44 | *) | |
45 | echo "Usage: ${0} {start|stop|restart|status}" | |
46 | exit 1 | |
47 | ;; | |
48 | esac | |
49 | ||
50 | # End $rc_base/init.d/sane |