System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with lpsched on HP-UX 11.31

SOLVED
Go to solution
Halldor Runar Haflidaso
Occasional Advisor

Trouble with lpsched on HP-UX 11.31

Hi,

This is an fresh install of HP-UX 11.31.0803 with QPKAPP B.11.31.0809.326 installed.

The trouble is I can't start the lp scheduler:

root@mls-test-01 # lpsched -v
lpsched: scheduler could not be started

Nothing is created in /var/adm/lp
root@mls-test-01 # ls -l /var/adm/lp
total 0


Permissions:
root@mls-test-01 # ls -ld /var/spool/lp
drwxr-xr-x 4 lp bin 8192 jún 16 21:23 /var/spool/lp/

root@mls-test-01 # ls -ld /var/adm/lp
drwxr-xr-x 2 lp bin 96 jún 16 19:47 /var/adm/lp/

root@mls-test-01 # ls -ld /usr/lib/lp
drwxr-xr-x 7 lp bin 96 jún 16 19:46 /usr/lib/lp/


Nothing relevant is posted in syslog nor anywhere I can find.

I've tried removing the PrintMgr depot and reinstalled it. Tried to start the lpsched through smh / sam, to no avail, never starts up.

Any ideas?
14 REPLIES
Fabian Briseño
Esteemed Contributor

Re: Trouble with lpsched on HP-UX 11.31

Hello.

Did you check if the SCHEDLOCK file excists?
if so, remove it.
rm SCHEDLOCK

do a ps -fe and look for any lpsched procs and kill them

Any error messages during installation?

Regards.
Knowledge is power.
Halldor Runar Haflidaso
Occasional Advisor

Re: Trouble with lpsched on HP-UX 11.31

Hi,

No unfortunately no such files:


halldorh@mls-test-01 > ls -lrt /var/spool/lp
total 0
lr-xr-xr-x 1 bin bin 18 jún 16 19:46 cmodel@ -> /usr/lib/lp/cmodel
lr-xr-xr-x 1 bin bin 17 jún 16 19:46 fonts@ -> /usr/lib/lp/fonts
lr-xr-xr-x 1 bin bin 17 jún 16 19:46 model@ -> /usr/lib/lp/model
lr-xr-xr-x 1 bin bin 18 jún 16 19:46 smodel@ -> /usr/lib/lp/smodel
-rw-r--r-- 1 lp lp 0 jún 16 19:47 outputq
-rw-r--r-- 1 lp lp 0 jún 16 19:47 qstatus
-rw-r--r-- 1 lp lp 0 jún 16 19:47 pstatus
lrwxr-xr-x 1 root sys 18 jún 16 19:47 sinterface@ -> /etc/lp/sinterface
lrwxr-xr-x 1 root sys 13 jún 16 19:47 class@ -> /etc/lp/class
lrwxr-xr-x 1 root sys 17 jún 16 19:47 interface@ -> /etc/lp/interface
lrwxr-xr-x 1 root sys 14 jún 16 19:47 member@ -> /etc/lp/member
lrwxr-xr-x 1 root sys 12 jún 16 19:47 info@ -> /etc/lp/info
lrwxr-xr-x 1 root sys 18 jún 16 19:47 cinterface@ -> /etc/lp/cinterface
drwxr-xr-x 2 lp bin 96 jún 16 19:47 request/
drwxr-xr-x 2 lp bin 96 jún 16 19:47 receive/
-rw-r----- 1 lp sys 0 jún 16 21:15 default

I did not see any errors when installing, and no lpsched processes are running.
Fabian Briseño
Esteemed Contributor

Re: Trouble with lpsched on HP-UX 11.31

Hello.

What about the rc.log?, anything there?
Knowledge is power.
Halldor Runar Haflidaso
Occasional Advisor

Re: Trouble with lpsched on HP-UX 11.31

Hi,


Start print spooler
Output from "/sbin/rc2.d/S720lp start":
----------------------------
/usr/sbin/lpsched: scheduler could not be started
EXIT CODE: 1
"/sbin/rc2.d/S720lp start" FAILED


Just that it failed to start.
Fabian Briseño
Esteemed Contributor

Re: Trouble with lpsched on HP-UX 11.31

Halldor Runar Haflidaso
Occasional Advisor

Re: Trouble with lpsched on HP-UX 11.31

Hi,

Unfortunately the permissions seem to be in order on
everything, so that doesn't seem to be the issue.
Dennis Handly
Acclaimed Contributor

Re: Trouble with lpsched on HP-UX 11.31

>Unfortunately the permissions seem to be in order on everything, so that doesn't seem to be the issue.

You checked /usr/sbin/lpsched?
-r-sr-xr-x 1 root bin
Halldor Runar Haflidaso
Occasional Advisor

Re: Trouble with lpsched on HP-UX 11.31

Hi,

Yup:

-r-sr-xr-x 1 root bin 229748 feb 15 2007 /usr/sbin/lpsched*

Dennis Handly
Acclaimed Contributor
Solution

Re: Trouble with lpsched on HP-UX 11.31

>lpsched: scheduler could not be started

This error occurs when trying demonize lpsched when doing an initial read on the pipe. Or getting bad data from the pipe in the parent from the child.

Are you running out of processes?
It might be useful running tusc on lpsched(1m).
Halldor Runar Haflidaso
Occasional Advisor

Re: Trouble with lpsched on HP-UX 11.31

Hi,

This is the result of running tusc while running lpsched -v:

root@mls-test-01 # tusc -a -f -k -v lpsched -v
execve(0x9fffffffffffeb80, 0x9ffffffffffff6b8, 0x9ffffffffffff6d0) .................................. [entry]
argv[0] @ 0x9ffffffffffff769: "lpsched"
argv[1] @ 0x9ffffffffffff771: "-v"
execve("/usr/sbin/lpsched", 0x9ffffffffffff6b8, 0x9ffffffffffff6d0) ................................. = 0 [32-bit]
mmap(NULL, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) .................. = 0x7effc000
open("/usr/lib/hpux32/dld.so", O_RDONLY, 0) ......................................................... = 3
read(3, "7fE L F 0102010101\0\0\0\0\0\0\0".., 1024) ................................................. = 1024
mmap(NULL, 579264, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_FILE|MAP_SHLIB, 3, 0) ........................ = 0xc0014000
sysconf(_SC_PAGE_SIZE) .............................................................................. = 4096
mmap(NULL, 3392, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_SHLIB, -1, 0) .................. = 0x7effb000
mmap(0x7eff7000, 12312, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FILE|MAP_SHLIB, 3, 589824) ............ = 0x7eff7000
close(3) ............................................................................................ = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) .................. = 0x7eff4000
sysconf(_SC_PAGE_SIZE) .............................................................................. = 4096
stat("/usr/lib/hpux32/dpd", 0x7ffff2a0) ............................................................. = 0
st_dev: 64 0x000008
st_ino: 679
st_mode: S_IFDIR|0555
st_nlink: 2
st_rdev: 0 0x000000
st_size: 96
st_blksize: 8192
st_blocks: 0
st_uid: 2
st_gid: 2
st_atime: Fri Jun 17 15:36:15 2011
st_mtime: Tue Jun 14 21:16:14 2011
st_ctime: Tue Jun 14 21:16:14 2011
open("/usr/lib/hpux32/dpd", O_RDONLY, 0) ............................................................ = 3
fcntl(3, F_SETFD, 0) ................................................................................ = 0
mmap(NULL, 16384, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) ................. = 0x7eff0000
getdents(3, 0x7eff0028, 8192) ....................................................................... = 80
ino=679 reclen=24 namlen=1 name=.
ino=50 reclen=24 namlen=2 name=..
ino=680 reclen=32 namlen=13 name=libjvm.so.bpd
getdents(3, 0x7eff0028, 8192) ....................................................................... = 0
close(3) ............................................................................................ = 0
getuid() ............................................................................................ = 0 (0)
getgid() ............................................................................................ = 3 (3)
open("/usr/sbin/lpsched", O_RDONLY, 0) .............................................................. = 3
pread(3, "\0\0\002\0\0\0, \0\0\0\aH P \0\0".., 60, 436) ............................................. = 60
close(3) ............................................................................................ = 0
utssys(0x7fffef10, 0, 0) ............................................................................ = 0
sysname: HP-UX
nodename: mls-test
release: B.11.31
version: U
machine: ia64
idnumber: 0332290944
procxsec(4, -1, 0x7fffeee0, 40) ..................................................................... = 0
open("/usr/lib/hpux32/libsec.so.1", O_RDONLY, 0) .................................................... = 3
fstat(3, 0x7ffff1f0) ................................................................................ = 0
st_dev: 64 0x000008
st_ino: 64
st_mode: S_IFREG|0555
st_nlink: 1
st_rdev: 0 0x000000
st_size: 489340
st_blksize: 8192
st_blocks: 480
st_uid: 2
st_gid: 2
st_atime: Fri Jun 17 15:35:30 2011
st_mtime: Thu Feb 15 20:36:32 2007
st_ctime: Tue Jun 14 21:16:33 2011
read(3, "7fE L F 0102010101\0\0\0\0\0\0\0".., 52) ................................................... = 52
pread(3, "7fE L F 0102010101\0\0\0\0\0\0\0".., 1024, 0) ............................................. = 1024
mmap(NULL, 299888, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB, 3, 0) ................................. = 0xc0470000
mmap(NULL, 28128, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_SHLIB, -1, 0) ................. = 0x7efe8000
mmap(0x7efe4000, 14280, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_SHLIB, 3, 327680) ..................... = 0x7efe4000
close(3) ............................................................................................ = 0
open("/usr/lib/hpux32/libc.so.1", O_RDONLY, 0) ...................................................... = 3
fstat(3, 0x7ffff1f0) ................................................................................ = 0
st_dev: 64 0x000008
st_ino: 686
st_mode: S_IFREG|0555
st_nlink: 1
st_rdev: 0 0x000000
st_size: 4919280
st_blksize: 8192
st_blocks: 4808
st_uid: 2
st_gid: 2
st_atime: Fri Jun 17 15:36:15 2011
st_mtime: Fri Feb 1 20:15:42 2008
st_ctime: Tue Jun 14 21:44:28 2011
read(3, "7fE L F 0102010101\0\0\0\0\0\0\0".., 52) ................................................... = 52
pread(3, "7fE L F 0102010101\0\0\0\0\0\0\0".., 1024, 0) ............................................. = 1024
mmap(NULL, 2887232, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB, 3, 0) ................................ = 0xc01a8000
madvise(0xc01a8000, 0x2c0e40, MADV_NORMAL) .......................................................... = 0
mmap(NULL, 46744, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_SHLIB, -1, 0) ................. = 0x7efd8000
mmap(0x7efd0000, 29284, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_SHLIB, 3, 2949120) .................... = 0x7efd0000
close(3) ............................................................................................ = 0
mmap(NULL, 16384, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) ................. = 0x7efcc000
open("/usr/lib/hpux32/libm.so.1", O_RDONLY, 0) ...................................................... = 3
fstat(3, 0x7ffff1f0) ................................................................................ = 0
st_dev: 64 0x000008
st_ino: 708
st_mode: S_IFREG|0555
st_nlink: 1
st_rdev: 0 0x000000
st_size: 1982100
st_blksize: 8192
st_blocks: 1936
st_uid: 2
st_gid: 2
st_atime: Fri Jun 17 15:36:15 2011
st_mtime: Thu Feb 15 20:47:24 2007
st_ctime: Tue Jun 14 21:16:22 2011
read(3, "7fE L F 0102010101\0\0\0\0\0\0\0".., 52) ................................................... = 52
pread(3, "7fE L F 0102010101\0\0\0\0\0\0\0".., 1024, 0) ............................................. = 1024
mmap(NULL, 1384640, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB, 3, 0) ................................ = 0xc04bc000
mmap(NULL, 3180, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_SHLIB, 3, 1441792) ........................... = 0x7eff6000
close(3) ............................................................................................ = 0
open("/usr/lib/hpux32/libdl.so.1", O_RDONLY, 0) ..................................................... = 3
fstat(3, 0x7ffff1f0) ................................................................................ = 0
st_dev: 64 0x000008
st_ino: 16399
st_mode: S_IFREG|0555
st_nlink: 1
st_rdev: 0 0x000000
st_size: 76412
st_blksize: 8192
st_blocks: 80
st_uid: 2
st_gid: 2
st_atime: Fri Jun 17 15:36:15 2011
st_mtime: Mon Mar 24 22:47:51 2008
st_ctime: Thu Jun 16 21:05:05 2011
read(3, "7fE L F 0102010101\0\0\0\0\0\0\0".., 52) ................................................... = 52
pread(3, "7fE L F 0102010101\0\0\0\0\0\0\0".., 1024, 0) ............................................. = 1024
mmap(NULL, 16080, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB, 3, 0) .................................. = 0xc046c000
mmap(NULL, 224, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_SHLIB, 3, 65536) .............................. = 0x7efef000
close(3) ............................................................................................ = 0
sigsetreturn(NULL, 0x6211988, 48640) ................................................................ = 0
mmap(NULL, 3336, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) ............................ = 0x7efcb000
sysconf(_SC_CPU_VERSION) ............................................................................ = 768
cpu: CPU_IA64_ARCHREV_0
brk(0x40015540) ..................................................................................... = 0
brk(0x40017530) ..................................................................................... = 0
brk(0x40018000) ..................................................................................... = 0
brk(0x4001a000) ..................................................................................... = 0
open("/usr/lib/nls/loc/hpux32/locales.3/is_IS.iso88591", O_RDONLY, 0) ............................... = 3
fstat(3, 0x7fffca50) ................................................................................ = 0
st_dev: 64 0x000008
st_ino: 21442
st_mode: S_IFREG|0555
st_nlink: 1
st_rdev: 0 0x000000
st_size: 85780
st_blksize: 8192
st_blocks: 88
st_uid: 2
st_gid: 2
st_atime: Fri Jun 17 15:35:35 2011
st_mtime: Fri Jan 12 18:57:10 2007
st_ctime: Tue Jun 14 22:35:00 2011
pread(3, "7fE L F 0102010101\0\0\0\0\0\0\0".., 1024, 0) ............................................. = 1024
stat("/usr/lib/hpux32/dpd", 0x7fffc080) ............................................................. = 0
st_dev: 64 0x000008
st_ino: 679
st_mode: S_IFDIR|0555
st_nlink: 2
st_rdev: 0 0x000000
st_size: 96
st_blksize: 8192
st_blocks: 0
st_uid: 2
st_gid: 2
st_atime: Fri Jun 17 15:36:32 2011
st_mtime: Tue Jun 14 21:16:14 2011
st_ctime: Tue Jun 14 21:16:14 2011
open("/usr/lib/hpux32/dpd/is_IS.iso88591.bpd", O_RDONLY, 0) ......................................... ERR#2 ENOENT
mmap(NULL, 5856, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB, 3, 0) ................................... = 0xc094a000
mmap(NULL, 14754, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_SHLIB, 3, 65536) ............................ = 0x7efc4000
close(3) ............................................................................................ = 0
stat("/usr/lib/nls/loc/hpux32/locales.3/is_IS.iso88591", 0x7fffd030) ................................ = 0
st_dev: 64 0x000008
st_ino: 21442
st_mode: S_IFREG|0555
st_nlink: 1
st_rdev: 0 0x000000
st_size: 85780
st_blksize: 8192
st_blocks: 88
st_uid: 2
st_gid: 2
st_atime: Fri Jun 17 15:36:32 2011
st_mtime: Fri Jan 12 18:57:10 2007
st_ctime: Tue Jun 14 22:35:00 2011
brk(0x4001b000) ..................................................................................... = 0
setitimer(ITIMER_REAL, 0x7ffff250, 0x7ffff260) ...................................................... = 0
value.it_interval.tv_sec: 0
value.it_interval.tv_usec: 0
value.it_value.tv_sec: 0
value.it_value.tv_usec: 0
ovalue.it_interval.tv_sec: 0
ovalue.it_interval.tv_usec: 0
ovalue.it_value.tv_sec: 0
ovalue.it_value.tv_usec: 0
setitimer(ITIMER_VIRTUAL, 0x7ffff250, 0x7ffff260) ................................................... = 0
value.it_interval.tv_sec: 0
value.it_interval.tv_usec: 0
value.it_value.tv_sec: 0
value.it_value.tv_usec: 0
ovalue.it_interval.tv_sec: 0
ovalue.it_interval.tv_usec: 0
ovalue.it_value.tv_sec: 0
ovalue.it_value.tv_usec: 0
setitimer(ITIMER_PROF, 0x7ffff250, 0x7ffff260) ...................................................... = 0
value.it_interval.tv_sec: 0
value.it_interval.tv_usec: 0
value.it_value.tv_sec: 0
value.it_value.tv_usec: 0
ovalue.it_interval.tv_sec: 0
ovalue.it_interval.tv_usec: 0
ovalue.it_value.tv_sec: 0
ovalue.it_value.tv_usec: 0
getnumfds() ......................................................................................... = 3
open("/usr/lib/nls/msg/is_IS.iso88591/lp.cat", O_RDONLY, 0101700) ................................... ERR#2 ENOENT
open("/usr/lib/nls/is/IS/iso88591/lp.cat", O_RDONLY, 0101700) ....................................... ERR#2 ENOENT
chdir("/var/spool/lp") .............................................................................. = 0
getuid() ............................................................................................ = 0 (0)
open("/var/spool/pwgr/status", O_RDONLY, 0) ......................................................... = 3
mmap(NULL, 532, PROT_READ, MAP_SHARED|MAP_VARIABLE|MAP_FILE|MAP_ADDR32, 3, 0) ....................... = 0xc0001000
close(3) ............................................................................................ = 0
socket(AF_UNIX, SOCK_DGRAM, 0) ...................................................................... = 3
getpid() ............................................................................................ = 22850 (22849)
unlink("/var/spool/sockets/pwgr/client22850") ....................................................... ERR#2 ENOENT
bind(3, 0x7efd8cf0, 38) ............................................................................. = 0
sin_family: AF_UNIX
sun_path: /var/spool/sockets/pwgr/client22850
fcntl(3, F_SETFD, 1) ................................................................................ = 0
time(NULL) .......................................................................................... = 1308328592
date: Fri Jun 17 15:36:32 2011
stat("/etc/default/lugname", 0x7fffcf20) ............................................................ = 0
st_dev: 64 0x000003
st_ino: 2522
st_mode: S_IFREG|0444
st_nlink: 1
st_rdev: 0 0x000000
st_size: 439
st_blksize: 8192
st_blocks: 8
st_uid: 0
st_gid: 3
st_atime: Fri Jun 17 15:36:15 2011
st_mtime: Thu Jun 16 19:54:16 2011
st_ctime: Thu Jun 16 19:54:16 2011
poll(0x7fffdda8, 1, 0) .............................................................................. = 1
pollfd[0].fd: 3
pollfd[0].events: POLLOUT
pollfd[0].revents: POLLOUT
sendto(3, "\0\00410\0\0\001\0\0\0\0\0\0\002".., 1040, 0, 0x7efd8d50, 0x19) .......................... = 1040
sin_family: AF_UNIX
sun_path: /var/spool/pwgr/daemon
poll(0x7fffdda8, 1, 1000) ........................................................................... = 1
pollfd[0].fd: 3
pollfd[0].events: POLLIN
pollfd[0].revents: POLLIN
recvfrom(3, "\0\0\01 \0\0\0\0\0\0\0\0\0\0\0! ".., 2064, 0, 0x7fffde30, 0x7fffdda4) .................. = 49
*fromlen: 94
sin_family: AF_UNIX
sun_path: /var/spool/pwgr/daemon
setresuid(9, 9, -1) ................................................................................. = 0
setresgid(7, 7, -1) ................................................................................. = 0
stat("/tcb/files/auth/system/default", 0x7ffff280) .................................................. ERR#2 ENOENT
getpid() ............................................................................................ = 22850 (22849)
stat("/etc/default/lugname", 0x7fffcf20) ............................................................ = 0
st_dev: 64 0x000003
st_ino: 2522
st_mode: S_IFREG|0444
st_nlink: 1
st_rdev: 0 0x000000
st_size: 439
st_blksize: 8192
st_blocks: 8
st_uid: 0
st_gid: 3
st_atime: Fri Jun 17 15:36:15 2011
st_mtime: Thu Jun 16 19:54:16 2011
st_ctime: Thu Jun 16 19:54:16 2011
poll(0x7fffdda8, 1, 0) .............................................................................. = 1
pollfd[0].fd: 3
pollfd[0].events: POLLOUT
pollfd[0].revents: POLLOUT
sendto(3, "\0\00410\0\0\001\0\0\001\0\0\002".., 1040, 0, 0x7efd8d50, 0x19) .......................... = 1040
sin_family: AF_UNIX
sun_path: /var/spool/pwgr/daemon
poll(0x7fffdda8, 1, 1000) ........................................................................... = 1
pollfd[0].fd: 3
pollfd[0].events: POLLIN
pollfd[0].revents: POLLIN
recvfrom(3, "\0\0\01 \0\0\001\0\0\0\0\0\0\0! ".., 2064, 0, 0x7fffde30, 0x7fffdda4) .................. = 49
*fromlen: 94
sin_family: AF_UNIX
sun_path: /var/spool/pwgr/daemon
getuid() ............................................................................................ = 9 (9)
getuid() ............................................................................................ = 9 (9)
setresuid(0, 0, -1) ................................................................................. = 0
brk(0x4001c000) ..................................................................................... = 0
brk(0x40020000) ..................................................................................... = 0
access("/var/adm/userdb/USERDB.DISABLED", F_OK) ..................................................... ERR#2 ENOENT
brk(0x40028000) ..................................................................................... = 0
open("/var/adm/userdb/da", O_RDWR, 0101700) ......................................................... = 4
alarm(0) ............................................................................................ = 0
time(NULL) .......................................................................................... = 1308328592
date: Fri Jun 17 15:36:32 2011
sigprocmask(SIG_SETMASK, 0x7fffe1e0, 0x7efe7990) .................................................... = 0
set: FULL SET
oset: EMPTY SET
lockf(4, 0x2, 0) .................................................................................... = 0
fstat(4, 0x7fffe190) ................................................................................ = 0
st_dev: 64 0x000005
st_ino: 432
st_mode: S_IFREG|0600
st_nlink: 1
st_rdev: 0 0x000000
st_size: 65536
st_blksize: 8192
st_blocks: 64
st_uid: 0
st_gid: 3
st_atime: Fri Jun 17 15:35:30 2011
st_mtime: Wed Jun 15 00:17:34 2011
st_ctime: Wed Jun 15 00:17:34 2011
lseek(4, 0, SEEK_SET) ............................................................................... = 0
read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0".., 32768) ................................................ = 32768
lockf(4, F_ULOCK, 0) ................................................................................ = 0
close(4) ............................................................................................ = 0
sigprocmask(SIG_SETMASK, 0x7efe7990, NULL) .......................................................... = 0
set: EMPTY SET
oset: NULL
open("/etc/default/security", O_RDONLY, 0666) ....................................................... = 4
lseek(4, 0, SEEK_SET) ............................................................................... = 0
ioctl(4, TCGETA, 0x7fffde00) ........................................................................ ERR#25 ENOTTY
command: _IOR('T', 1, 18)
read(4, "# S e c u r i t y s e t t i ".., 8192) ................................................. = 3320
read(4, 0x4001b508, 8192) ........................................................................... = 0
close(4) ............................................................................................ = 0
open("/etc/security.dsc", O_RDONLY, 0666) ........................................................... = 4
ioctl(4, TCGETA, 0x7fffe240) ........................................................................ ERR#25 ENOTTY
command: _IOR('T', 1, 18)
read(4, "# R e v i s i o n = @ ( # ) B . ".., 8192) ................................................. = 3652
lseek(4, -2265, SEEK_CUR) ........................................................................... = 1387
close(4) ............................................................................................ = 0
setaudproc(1) ....................................................................................... = 0
stat("/etc/default/lugname", 0x7fffe310) ............................................................ = 0
st_dev: 64 0x000003
st_ino: 2522
st_mode: S_IFREG|0444
st_nlink: 1
st_rdev: 0 0x000000
st_size: 439
st_blksize: 8192
st_blocks: 8
st_uid: 0
st_gid: 3
st_atime: Fri Jun 17 15:36:15 2011
st_mtime: Thu Jun 16 19:54:16 2011
st_ctime: Thu Jun 16 19:54:16 2011
time(0x7ffff190) .................................................................................... = 1308328592
date: Fri Jun 17 15:36:32 2011
stat("/tcb/files/auth/system/default", 0x7ffff120) .................................................. ERR#2 ENOENT
audtag(0, "0: -1:lp:201106171636", 0) ........................................................ = 28
setresuid(9, 9, -1) ................................................................................. = 0
sigprocmask(SIG_UNBLOCK, 0x7ffff2f0, NULL) .......................................................... = 0
set: SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGUSR1|SIGUSR2|SIGCLD|SIGPWR|SIGVTALRM|SIGPROF|SIGIO|SIGWINCH|SIGSTOP|SIGTSTP|SIGCONT|SIGTTIN|SIGTTOU|SIGURG|SIGLOST|_SIGRESERVE|_SIGDIL|_SIGXCPU|_SIGXFSZ|_SIGCANCEL|_SIGGFAULT|SIGRT1|SIGRT2|SIGRT3|SIGRT4|SIGRT5|SIGRT6|SIGRT7|SIGRT8
oset: NULL
pipe() .............................................................................................. = 4 (5)
fork() .............................................................................................. = 22851
fork() ............................................................(returning as child ...) ......... = 22850
close(5) ............................................................................................ = 0
close(4) ............................................................................................ = 0
sigprocmask(SIG_SETMASK, 0x7ffff290, 0x7ffff2b0) .................................................... = 0
set: FULL SET
oset: EMPTY SET
sigprocmask(SIG_SETMASK, 0x7ffff2b0, 0x7ffff290) .................................................... = 0
set: EMPTY SET
oset: SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGUSR1|SIGUSR2|SIGCLD|SIGPWR|SIGVTALRM|SIGPROF|SIGIO|SIGWINCH|SIGTSTP|SIGCONT|SIGTTIN|SIGTTOU|SIGURG|SIGLOST|_SIGDIL|_SIGXCPU|_SIGXFSZ|SIGRT1|SIGRT2|SIGRT3|SIGRT4|SIGRT5|SIGRT6|SIGRT7|SIGRT8
sigsetreturn(NULL, 0x6211988, 48640) ................................................................ = 0
sigprocmask(SIG_SETMASK, 0x7ffff290, 0x7ffff2b0) .................................................... = 0
set: FULL SET
oset: EMPTY SET
sigprocmask(SIG_SETMASK, 0x7ffff2b0, 0x7ffff290) .................................................... = 0
set: EMPTY SET
oset: SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGUSR1|SIGUSR2|SIGCLD|SIGPWR|SIGVTALRM|SIGPROF|SIGIO|SIGWINCH|SIGTSTP|SIGCONT|SIGTTIN|SIGTTOU|SIGURG|SIGLOST|_SIGDIL|_SIGXCPU|_SIGXFSZ|SIGRT1|SIGRT2|SIGRT3|SIGRT4|SIGRT5|SIGRT6|SIGRT7|SIGRT8
sigaction(SIGHUP, 0x7ffff2e0, NULL) ................................................................. = 0
act.sa_handler: SIG_IGN
act.sa_mask: EMPTY SET
act.sa_flags: 0
sigaction(SIGINT, 0x7ffff2e0, NULL) ................................................................. = 0
act.sa_handler: SIG_IGN
act.sa_mask: EMPTY SET
act.sa_flags: 0
sigaction(SIGQUIT, 0x7ffff2e0, NULL) ................................................................ = 0
act.sa_handler: SIG_IGN
act.sa_mask: EMPTY SET
act.sa_flags: 0
sigaction(SIGCLD, 0x7ffff2e0, NULL) ................................................................. = 0
act.sa_handler: SIG_IGN
act.sa_mask: EMPTY SET
act.sa_flags: 0
sigaction(SIGTERM, 0x7ffff2e0, NULL) ................................................................ = 0
act.sa_handler: SIG_IGN
act.sa_mask: EMPTY SET
act.sa_flags: 0
close(-1) ........................................................................................... ERR#9 EBADF
close(-1) ........................................................................................... ERR#9 EBADF
open("/usr/lib/nls/msg/is_IS.iso88591/lp.cat", O_RDONLY, 0101700) ................................... ERR#2 ENOENT
open("/usr/lib/nls/is/IS/iso88591/lp.cat", O_RDONLY, 0101700) ....................................... ERR#2 ENOENT
umask(0) ............................................................................................ = 022
getpid() ............................................................................................ = 22851 (22850)
setpgrp3(2) ......................................................................................... = 22851
open("/var/spool/lp/SCHEDLOCK", O_RDWR|O_CREAT|O_NONBLOCK, 0640) .................................... = 4
fcntl(4, F_SETLK, 0x7ffff230) ....................................................................... = 0
l_type: F_WRLCK
l_whence: SEEK_SET
l_start: 0
l_len: 0
l_pid: 0
fstat(4, 0x7ffff240) ................................................................................ = 0
st_dev: 64 0x000005
st_ino: 16527
st_mode: S_IFREG|0640
st_nlink: 1
st_rdev: 0 0x000000
st_size: 0
st_blksize: 8192
st_blocks: 0
st_uid: 9
st_gid: 7
st_atime: Fri Jun 17 15:36:32 2011
st_mtime: Fri Jun 17 15:36:32 2011
st_ctime: Fri Jun 17 15:36:32 2011
fcntl(4, F_GETFD, 0) ................................................................................ = 0
unlink("/var/spool/lp/FIFO") ........................................................................ ERR#2 ENOENT
unlink("/var/spool/lp/CLD_FIFO") .................................................................... ERR#2 ENOENT
access("/var/adm/lp/oldlog", F_OK) .................................................................. ERR#13 EACCES
access("/var/adm/lp/log", F_OK) ..................................................................... ERR#13 EACCES
umask(033) .......................................................................................... = 0
close(2) ............................................................................................ = 0
open("/var/adm/lp/log", O_WRONLY|O_APPEND|O_CREAT, 0666) ............................................ ERR#13 EACCES
unlink("/var/spool/lp/SCHEDLOCK") ................................................................... = 0
fcntl(4, F_SETLK, 0x7ffff2c0) ....................................................................... = 0
l_type: F_UNLCK
l_whence: SEEK_SET
l_start: 0
l_len: 0
l_pid: 0
close(4) ............................................................................................ = 0
getpid() ............................................................................................ = 22851 (22850)
exit(1) ............................................................................................. WIFEXITED(1)
read(4, 0x7ffff2d0, 1) .............................................................................. = 0
close(4) ............................................................................................ = 0
lpsched:write(2, "l p s c h e d : ", 8) ..................................................................... = 8
write(2, " ", 1) ................................................................................... = 1
schedulewrite(2, "s c h e d u l e ", 8) ..................................................................... = 8
rwrite(2, "r ", 1) ................................................................................... = 1
could nwrite(2, " c o u l d n ", 8) ..................................................................... = 8
owrite(2, "o ", 1) ................................................................................... = 1
t be stawrite(2, "t b e s t a ", 8) ..................................................................... = 8
rwrite(2, "r ", 1) ................................................................................... = 1
ted
write(2, "t e d \n", 4) ............................................................................. = 4
close(-1) ........................................................................................... ERR#9 EBADF
close(-1) ........................................................................................... ERR#9 EBADF
getpid() ............................................................................................ = 22850 (22849)
unlink("/var/spool/sockets/pwgr/client22850") ....................................................... ERR#1 EPERM
exit(1) ............................................................................................. WIFEXITED(1)
Halldor Runar Haflidaso
Occasional Advisor

Re: Trouble with lpsched on HP-UX 11.31

hi,

I found the problem, the permissions on /var/adm was 700, changed thm to 755 and now lpsched started up fine.

Thanks everyone.
Halldor Runar Haflidaso
Occasional Advisor

Re: Trouble with lpsched on HP-UX 11.31

The permissions on /var/adm where wrong (700, correct is 755).
Dennis Handly
Acclaimed Contributor

Re: Trouble with lpsched on HP-UX 11.31

>the permissions on /var/adm was 700,

Yes, this would point to it:
access("/var/adm/lp/oldlog", F_OK) . ERR#13 EACCES

I then wondered how could this happen with root but:
setresuid(9, 9, -1)
Halldor Runar Haflidaso
Occasional Advisor

Re: Trouble with lpsched on HP-UX 11.31

For the record, this happened because I installed sudo, by default the timestampdir is /var/adm, and when sudo is run the permissions on that is set to 700.

Changed it to /var/adm/sudo in sudoers, and that solved that problem.