[geeks] Solaris SMF errors
Ido Dubrawsky
idubraws at dubrawsky.org
Tue Nov 15 14:36:39 CST 2005
Can Solaris' SMF accept soft links for programs as being valid? I've got an
Apache Web server (Ultra 5, Solaris 10) that everytime I boot has the following
error message in /var/svc/log/network-http:apache2.log
/lib/svc/method/http-apache2: /opt/bin/apachectl: not found
[ Nov 2 21:57:20 Method "start" exited with status 1 ]
[ Nov 2 22:02:38 Leaving maintenance because disable requested. ]
[ Nov 2 22:02:40 Disabled. ]
[ Nov 2 22:14:53 Enabled. ]
[ Nov 2 22:14:54 Executing start method ("/lib/svc/method/http-apache2 start")
]
/lib/svc/method/http-apache2: /opt/bin/apachectl: not found
[ Nov 2 22:14:54 Method "start" exited with status 1 ]
[ Nov 2 22:14:55 Executing start method ("/lib/svc/method/http-apache2 start")
]
/lib/svc/method/http-apache2: /opt/bin/apachectl: not found
[ Nov 2 22:14:55 Method "start" exited with status 1 ]
[ Nov 2 22:14:55 Executing start method ("/lib/svc/method/http-apache2 start")
]
[ Nov 2 22:15:03 Method "start" exited with status 0 ]
/opt/bin/apachectl is a soft link to /opt/depot/apache-2.0.54/bin/apachectl and
I don't know whether that's the problem. I feel that it's not but I want
other's opinions.
I suspect the real problem is that /opt is not mounted when the script is being
executed. I've changed the mount order for /opt in /etc/vfstab to:
/dev/dsk/c0t0d0s5 /dev/rdsk/c0t0d0s5 /opt ufs 1 yes
-
so that it mounts at the same time as /, /usr and /var but I keep getting this
error.
Should I simply move the svc manifest from network to applications? Any one
have thoughts whether that would solve the problem? As it stands I have to
manually start the service every time the system boots. Sun's BigAdmin page
on SMF manifests seems to indicate that Apache belongs in the applications
category but the Solaris 10 default install puts the manifest in network.
Ideas? Thoughts? Suggestions?
Ido
--
===============================================================================
Ido Dubrawsky, CISSP E-mail: ido at dubrawsky.org
Network Security Architect idubraws at siliconsec.com
dubrawsky.org
500 Hermleigh Rd
Silver Spring, MD. 20902
(301) 651-5441 (cell)
===============================================================================
More information about the geeks
mailing list