Skip to content

Commit 957afb9

Browse files
fix(model): use template variable for binary path in Linux service file
Updated shelltime.service to use {{.BaseFolder}}/bin/shelltime-daemon instead of hardcoded /usr/local/bin/shelltime-daemon to match the pattern used in macOS configuration. Fixes #152 Co-authored-by: Le He <AnnatarHe@users.noreply.github.com>
1 parent a064fbc commit 957afb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

model/sys-desc/shelltime.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ After=network.target
44

55
[Service]
66
Type=simple
7-
ExecStart=/bin/sh -c 'exec $(getent passwd $USER | cut -d: -f7) -l -c "/usr/local/bin/shelltime-daemon"'
7+
ExecStart=/bin/sh -c 'exec $(getent passwd $USER | cut -d: -f7) -l -c "{{.BaseFolder}}/bin/shelltime-daemon"'
88
Restart=always
99

1010
# Resource limits

0 commit comments

Comments
 (0)