packages/cups: use new service functions
[openwrt/svn-archive/archive.git] / net / cups / files / cupsd.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006-2011 OpenWrt.org
3
4 START=50
5
6 start() {
7 mkdir -m 0755 -p /var/cache/cups
8 mkdir -m 0755 -p /var/cups
9 mkdir -m 0755 -p /var/spool/cups/tmp
10 service_start /usr/sbin/cupsd
11 }
12
13 stop() {
14 service_stop /usr/sbin/cupsd
15 }
16
17 reload() {
18 service_reload /usr/sbin/cupsd
19 }