diff options
author | Simon Nagl <simonnagl@aim.com> | 2016-05-10 00:27:50 +0200 |
---|---|---|
committer | Simon Nagl <simonnagl@aim.com> | 2016-05-23 11:34:04 +0200 |
commit | a48fb7d4951c2541e713da4b9272db02f1a57abc (patch) | |
tree | 014a50ef4e74dea8a54f867632074661b7313990 /system | |
parent | d095ec21547be6acf25d1ea707efca0c8cb75d45 (diff) |
Command line: Follow IEEE Std 1003.1, 2013 Edition
Standardize command line options:
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html
Make command line options maintainable:
- Use getopts for parsing.
- Define options in a list of structs.
- Compute optstring and help message from the struct.
Changed command line options are marked deprecated. We can remove them in the
next major release.
Diffstat (limited to 'system')
-rwxr-xr-x | system/netdata-init-d.in | 2 | ||||
-rwxr-xr-x | system/netdata-openrc.in | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/system/netdata-init-d.in b/system/netdata-init-d.in index 3e82d0d366..07d5a19ecd 100755 --- a/system/netdata-init-d.in +++ b/system/netdata-init-d.in @@ -14,7 +14,7 @@ DAEMON="netdata" DAEMON_PATH=@sbindir_POST@ PIDFILE=@localstatedir_POST@/$DAEMON.pid -DAEMONOPTS="-pidfile $PIDFILE" +DAEMONOPTS="-P $PIDFILE" STOP_TIMEOUT="10" service_start() diff --git a/system/netdata-openrc.in b/system/netdata-openrc.in index 299db5699f..3d5f2cdcc5 100755 --- a/system/netdata-openrc.in +++ b/system/netdata-openrc.in @@ -25,7 +25,7 @@ extra_started_commands="getconf" pidfile="/run/netdata.pid" command="${NETDATA_INSTALL_PATH}/usr/sbin/netdata" command_background="yes" -command_args="-pidfile ${pidfile} ${NETDATA_EXTRA_ARGS}" +command_args="-P ${pidfile} ${NETDATA_EXTRA_ARGS}" # start_stop_daemon_args="-u ${NETDATA_OWNER}" start_stop_daemon_args="" |