LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-13-2014, 07:21 AM   #1
PelleP
LQ Newbie
 
Registered: Aug 2014
Posts: 14

Rep: Reputation: Disabled
How to pass options to service started with systemd?


Hello,

Ok, so Im starting to get the hang of systemd and so on on RHEL7. But I have one quick question:

If I'm for example starting the NTP-server Chrony using the command
Code:
systemctl start chronyd.service
...and I want to create only ipv4 sockets using the -4 option to /usr/sbin/chronyd. How do I accomplish that with systemctl?

If I look in the .service-file under ExecStart it says the path followed by the variable $OPTIONS. Where are the options defined?

Thanx in advance!
/P
 
Old 10-13-2014, 02:15 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
chrony probably has a config file that you should use instead.
 
Old 10-14-2014, 01:57 AM   #3
PelleP
LQ Newbie
 
Registered: Aug 2014
Posts: 14

Original Poster
Rep: Reputation: Disabled
Ok. Now I just used chrony as an example but is that the general answer as well?
You don't do it the way I thought, you use config files?

Regards,
/P
 
Old 10-14-2014, 03:45 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,359

Rep: Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180
Code:
man systemd.exec
EnvironmentFile might be of interest.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write slow, blocking systemd shutdown service? charlweed Linux - General 9 03-22-2019 03:22 PM
[SOLVED] Ångström doesn't boot after masking systemd-journald.service. ferite Linux - Newbie 2 07-15-2014 09:57 AM
[SOLVED] new Sabayon 13.04 install: Can't get GPM to start as a service... {systemd} jtwdyp Sabayon 2 06-16-2013 12:46 PM
Convert init script to systemd file service igor012 Linux - Software 1 10-15-2012 10:05 AM
Boot Delay 30min: systemd-analyze blame systemd-tmpfiles-setup.service BGHolmes Fedora 0 07-27-2011 09:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration