Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#7993 - Allow root to provide additional arguments to system services using /etc/rc.conf file.

Attached to Project: Arch Linux
Opened by Robert Piasecki (robertp) - Tuesday, 11 September 2007, 18:29 GMT
Last edited by Tobias Powalowski (tpowa) - Tuesday, 11 September 2007, 19:34 GMT
Task Type Feature Request
Category System
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08 Don't Panic
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Currently there is no good method to provide additional arguments for services started by scripts from /etc/rc.d directory. The only method I know is to manually edit scripts and add there required arguments, but after upgrade these modifications may be lost.

The easiest method to solve the problem is to provide additional arguments to services using *_flags (like httpd_flags or proftpd_flags) shell variables which may be set by root in /etc/rc.conf file.

I currently have in rc.conf:

httpd_flags="-f /dane/service/www/conf/httpd.conf -DSSL"

and in /etc/rc.d/httpd

/usr/sbin/apachectl ${httpd_flags} -k start &>/dev/null

which mostly solves the problem.

Similar method is used by NetBSD (and maybe other operating system or Linux distributions) in its startup scripts.

It would be even better to create file (or directory with files) with default values for *_flags variables and include the file(s) before including rc.conf. This way default values may be overwritten by values set in /etc/rc.conf file.

Additional info:
* system version(s): all ArchLinux versions
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Tuesday, 11 September 2007, 19:34 GMT
Reason for closing:  Not a bug
Comment by Tobias Powalowski (tpowa) - Tuesday, 11 September 2007, 18:43 GMT
wouldn't be a conf.d file fit that needs?
Comment by Robert Piasecki (robertp) - Tuesday, 11 September 2007, 19:19 GMT
I didn't notice that configuration could be specified in /etc/conf.d directory since it's used only in few scripts. Most scripts doesn't have/load any configuration from /etc/conf.d. It would be useful if all scripts from /etc/rc.d had corresponding configuration files in /etc/conf.d. I am particularly interested in providing arguments to httpd, proftpd, sshd and ntp scripts.
Comment by Tobias Powalowski (tpowa) - Tuesday, 11 September 2007, 19:23 GMT
the conf.d is for such stuff, if the rc scripts doesn't provide it and it would be usefull then bugs against those packages should be filled.
Comment by Tobias Powalowski (tpowa) - Tuesday, 11 September 2007, 19:24 GMT
httpd is listed there
Comment by Robert Piasecki (robertp) - Tuesday, 11 September 2007, 19:32 GMT
ok, sorry for problem

Loading...