Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specify daemon options with systemd unit file #64

Closed
kcgthb opened this issue Mar 8, 2018 · 3 comments
Closed

specify daemon options with systemd unit file #64

kcgthb opened this issue Mar 8, 2018 · 3 comments

Comments

@kcgthb
Copy link

kcgthb commented Mar 8, 2018

Hi!

Since the sysconfig file has been removed in commit d034b3a and the systemd unit file doesn't seem to look at any configuration file, what's the recommend way to pass arguments to the munged daemon now? Typically, --num-threads.

The DAEMON_ARGS variable mentioned in the QUICKSTART doesn't seem to apply anymore.

Thanks!

@dun dun added the question label Mar 8, 2018
@dun
Copy link
Owner

dun commented Mar 8, 2018

Command-line options can be appended to the ExecStart line in the munge.service systemd unit file. For example, #31 shows the --syslog option being specified. Someday, there'll be a configuration file (#58).

QUICKSTART needs to be updated.

@kcgthb
Copy link
Author

kcgthb commented Mar 8, 2018

All right, thanks!

As a further enhancement, it woul still be possible to let the systemd unit file use a sysconfig file, with something like:

EnvironmentFile=-/run/sysconfig/munge
ExecStart=/usr/sbin/munged $DAEMON_ARGS

@dun
Copy link
Owner

dun commented Mar 8, 2018

Thanks for the tip! That sounds like a good idea. I'll look into that when time allows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants