From ea63e31dc475a259031de0036a08221e9c35ab85 Mon Sep 17 00:00:00 2001 From: Le He Date: Sun, 5 Oct 2025 16:46:50 +0800 Subject: [PATCH] feat(daemon): update service descriptors for systemd and launchctl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update systemd service file (shelltime.service) - Update macOS launchctl plist (xyz.shelltime.daemon.plist) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- model/sys-desc/shelltime.service | 9 ++++++++- model/sys-desc/xyz.shelltime.daemon.plist | 4 +++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/model/sys-desc/shelltime.service b/model/sys-desc/shelltime.service index 571d69d..21357bf 100644 --- a/model/sys-desc/shelltime.service +++ b/model/sys-desc/shelltime.service @@ -4,8 +4,15 @@ After=network.target [Service] Type=simple -ExecStart=/usr/local/bin/shelltime-daemon +ExecStart=/bin/sh -c 'exec $(getent passwd username | cut -d: -f7) -l -c "/usr/local/bin/shelltime-daemon"' Restart=always +# Resource limits +LimitNOFILE=65536 + +# Logging +StandardOutput=journal +StandardError=journal + [Install] WantedBy=default.target diff --git a/model/sys-desc/xyz.shelltime.daemon.plist b/model/sys-desc/xyz.shelltime.daemon.plist index d30eefc..3d9bbe6 100644 --- a/model/sys-desc/xyz.shelltime.daemon.plist +++ b/model/sys-desc/xyz.shelltime.daemon.plist @@ -6,7 +6,9 @@ xyz.shelltime.daemon ProgramArguments - {{.BaseFolder}}/bin/shelltime-daemon + /bin/sh + -c + exec $SHELL -l -c '{{.BaseFolder}}/bin/shelltime-daemon' RunAtLoad