Skip to content

Commit

Permalink
make systemd script variabilized (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Coutadeur committed Oct 20, 2023
1 parent abee88a commit b2ec25c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/install/etc/default/lsc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#====================================================================
# Configuration for LSC init script
# Configuration for LSC init script and systemd script
# (http://www.lsc-project.org).
#====================================================================

Expand All @@ -17,3 +17,10 @@ LSC_JMXPORT="1099"

# JAVA
#JAVA_HOME=/usr/java/jdk/jre

# specific parameters for systemd script
LSC_CONFIG_DIR="/etc/lsc"
LSC_SYNC_TASKS="-s all"
LSC_ASYNC_TASKS=""
LSC_CLEAN_TASKS=""
LSC_EXTRA_ARGS=""
3 changes: 2 additions & 1 deletion src/install/lib/systemd/system/lsc.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ Description=Run LSC jobs

[Service]
Type=oneshot
ExecStart=/usr/bin/lsc -f /etc/lsc -s all
EnvironmentFile=/etc/default/lsc
ExecStart=/usr/bin/lsc -f ${LSC_CONFIG_DIR} ${LSC_SYNC_TASKS} ${LSC_ASYNC_TASKS} ${LSC_CLEAN_TASKS} ${LSC_EXTRA_ARGS}
User=lsc
Group=lsc

Expand Down

0 comments on commit b2ec25c

Please sign in to comment.