Skip to content

Commit

Permalink
sysconfig: add log-level option details
Browse files Browse the repository at this point in the history
set default log-level environment variable in daemon systemd unit, also
added required comment lines in the sysconfig file.

Change-Id: I9f61842ba95ae278367692eba8e62cc54c1b5cd3
Signed-off-by: Prasanna Kumar Kalever <[email protected]>
  • Loading branch information
Prasanna Kumar Kalever committed Jun 7, 2017
1 parent 8cb4991 commit a1815c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion systemd/gluster-blockd.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ After=rpcbind.service iscsid.service target.service tcmu-runner.service
[Service]
Type=simple
Environment="GB_GLFS_LRU_COUNT=5"
Environment="GB_LOG_LEVEL=INFO"
EnvironmentFile=-@sysconfigdir@/gluster-blockd
ExecStart=@prefix@/sbin/gluster-blockd --glfs-lru-count $GB_GLFS_LRU_COUNT $GB_EXTRA_ARGS
ExecStart=@prefix@/sbin/gluster-blockd --glfs-lru-count $GB_GLFS_LRU_COUNT --log-level $GB_LOG_LEVEL $GB_EXTRA_ARGS
KillMode=process

[Install]
Expand Down
4 changes: 4 additions & 0 deletions systemd/gluster-blockd.sysconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@
#GB_GLFS_LRU_COUNT=5


# supported loglevels [ NONE, ERROR, WARNING, INFO, DEBUG, TRACE ]
#GB_LOG_LEVEL=INFO


# Expert use only, just incase if we have any extra args to pass for daemon
#GB_EXTRA_ARGS=""

0 comments on commit a1815c0

Please sign in to comment.