From: | Gold is Heavy <aeoo@×××××××.org> |
---|---|
To: | gentoo-dev@××××××××××.org |
Subject: | [gentoo-dev] cups ebuild is missing /etc/init.d/cupsd script |
Date: | Wed, 10 Oct 2001 01:29:42 |
Message-Id: | auto-000008387557@front1.mail.megapathdsl.net |
1 | I emerged cupsd today and I noticed that it didn't include /etc/init.d/cupsd |
2 | script. I had to create my own. |
3 | --- |
4 | #!/sbin/runscript |
5 | |
6 | depend() { |
7 | need net |
8 | } |
9 | |
10 | checkconfig() { |
11 | if [ ! -e /etc/cups/cupsd.conf ] ; then |
12 | einfo "Running cupsd without an /etc/cups/cupsd.conf file..." |
13 | fi |
14 | } |
15 | |
16 | start() { |
17 | checkconfig |
18 | ebegin "Starting cupsd" |
19 | start-stop-daemon --start --quiet --exec /usr/sbin/cupsd |
20 | eend $? |
21 | } |
22 | |
23 | stop() { |
24 | ebegin "Stopping cupsd" |
25 | start-stop-daemon --stop --quiet --exec /usr/sbin/cupsd |
26 | eend $? |
27 | } |
28 | --- |
29 | Here it is, if anyone wants mine. |
30 | |
31 | --Leo |