solaris - Starting the service admin svcadm, does not generate the pid file in /var/run. How is this file created? -


i have been trying write script start/stop service svcadm. not understand how pid of process executed /var/run/myprocess.pid? not clear me can not find on other scripts in /lib/svc/method writes /var/run. mean have explicitly extract target location of pidfile environment variable, let program query , write code put pid in /var/run/myprocess.pid file?

the pid file created daemon binary itself, not service scripts. if code need portable non solaris 10+ oses, might use defines this: http://src.opensolaris.org/source/xref/amd/ibs-gate/usr/src/cmd/ipf/tools/ipmon.c#130


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -