[opensuse-buildservice] openSUSE Packages & post-build checks
I have a few packages which will attempt to start themselves in a post-install script. However, they require network access and syslog (/dev/log) to be available. At the moment, I'm unable to figure out how to allow this to pass checks in OBS. How do others deal with this on the public OBS? -Matt
Matthew Drobnak
I have a few packages which will attempt to start themselves in a post-install script. However, they require network access and syslog (/dev/log) to be available. At the moment, I'm unable to figure out how to allow this to pass checks in OBS.
Don't do that then. Daemons should be started by init scripts, or on demand. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
It's calling the init script to start it on package install. Basically the program is a one-shot that ensures the host has a kerberos keytab. We run it after installing it, and then on each boot to make sure the host is right if it is renamed and rebooted. ie: %post /etc/init.d/kerberize-client start chkconfig --add kerberize-client chkconfig kerberize-client on -Matt On Tue, 2014-08-12 at 21:22 +0200, Andreas Schwab wrote:
Matthew Drobnak
writes: I have a few packages which will attempt to start themselves in a post-install script. However, they require network access and syslog (/dev/log) to be available. At the moment, I'm unable to figure out how to allow this to pass checks in OBS.
Don't do that then. Daemons should be started by init scripts, or on demand.
Andreas.
N�����r��y隊Z)z{.���Wlz��qﮞ˛���m�)z{.��+�:�{Zr�az�'z��j)h���Ǜ�)]���Ǿ� ޮ�^�ˬz��
??n Tuesday 2014-08-12 21:26, Matthew Drobnak wrote:
It's calling the init script to start it on package install.
Basically the program is a one-shot that ensures the host has a kerberos keytab. We run it after installing it, and then on each boot to make sure the host is right if it is renamed and rebooted.
Hosts can be renamed without being rebooted, and there may be no network at any time, so that a one-shot service does not seem like the right kind. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Thanks for the advice. Is there a page with best-practices for embedded scripts on SUSE? -Matt On Wed, 2014-08-13 at 02:40 +0200, Jan Engelhardt wrote:
??n Tuesday 2014-08-12 21:26, Matthew Drobnak wrote:
It's calling the init script to start it on package install.
Basically the program is a one-shot that ensures the host has a kerberos keytab. We run it after installing it, and then on each boot to make sure the host is right if it is renamed and rebooted.
Hosts can be renamed without being rebooted, and there may be no network at any time, so that a one-shot service does not seem like the right kind.
N�����r��y隊Z)z{.���Wlz��qﮞ˛���m�)z{.��+�:�{Zr�az�'z��j)h���Ǜ�)]���Ǿ� ޮ�^�ˬz��
participants (3)
-
Andreas Schwab
-
Jan Engelhardt
-
Matthew Drobnak