Changeset 544

Show
Ignore:
Timestamp:
08/26/06 19:53:37 (2 years ago)
Author:
wbx
Message:

add a specific cups user, add a startup script

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/package/cups/files/cupsd.init

    r1 r544  
    11#!/bin/sh 
    2 mkdir -p /tmp/cups 
    3 mkdir -p /tmp/spool/cups/tmp 
    4 exec /usr/sbin/cupsd 
     2 
     3. /etc/rc.conf 
     4 
     5case $1 in 
     6autostart) 
     7        test x"$cups" = x"NO" && exit 0 
     8        exec $0 start 
     9        ;; 
     10start) 
     11        [ -d /tmp/cups ] || mkdir -p /tmp/cups 
     12        [ -d /tmp/spool/cups/tmp ] || mkdir -p /tmp/spool/cups/tmp 
     13        /usr/sbin/cupsd 
     14        ;; 
     15stop) 
     16        killall cupsd 
     17        ;; 
     18restart) 
     19        $0 stop 
     20        $0 start 
     21        ;; 
     22*) 
     23        echo "Usage: $0 {start | stop | restart}" 
     24        ;; 
     25esac 
     26exit 0 
     27 
  • trunk/freewrt/package/cups/files/etc/cups/cupsd.conf

    r1 r544  
    1 ######################################################################## 
    2 #                                                                      # 
    3 # This is the CUPS configuration file.  If you are familiar with       # 
    4 # Apache or any of the other popular web servers, we've followed the   # 
    5 # same format.  Any configuration variable used here has the same      # 
    6 # semantics as the corresponding variable in Apache.  If we need       # 
    7 # different functionality then a different name is used to avoid       # 
    8 # confusion...                                                         # 
    9 #                                                                      # 
    10 ######################################################################## 
    11  
    12  
    131AccessLog syslog 
    142ErrorLog syslog 
     
    208MaxJobs 25 
    219MaxPrinterHistory 10 
    22 #Printcap /etc/printcap 
    23 #PrintcapFormat BSD 
    2410RequestRoot /tmp/cups 
    25 #RemoteRoot remroot 
    26 User root 
    27 Group root 
     11User cups 
     12Group cups 
    2813RIPCache 512k 
    2914TempDir /tmp/cups 
     
    4429AuthType Basic 
    4530AuthClass System 
    46  
    4731Order Allow,Deny 
    4832Allow From All