
daemon-management
by yanivprusman
SKILL.md
name: daemon-management description: Instructions for building and restarting the AutomateLinux daemon.
Daemon Management
This skill covers how to manage the lifecycle of the AutomateLinux daemon, specifically focusing on building and restarting it using custom terminal functions.
Core Functions
bd (Build Daemon)
The primary function used to build and restart the daemon. It performs the following:
- Remembers the current directory.
- Navigates to the daemon source directory (
$AUTOMATE_LINUX_DAEMON_DIR). - Calls the
bsfunction. - Returns to the original directory.
bs (Build and Source)
An alias for b -source. It triggers the b function with the -source flag.
b (Build Wrapper)
A wrapper for the project's build scripts. When called with -source, it sources the build.sh script instead of executing it in a subshell, allowing environments variables and function definitions within the script to persist if needed.
Daemon Build Process (daemon/build.sh)
When bd is executed, the daemon/build.sh script performs these steps:
- Stop Service: Executes
daemon/stop_daemon.shto safely shut down any running instances. - Environment Check: Ensures the UDS (Unix Domain Socket) directory
/run/automatelinuxexists and has the correct ownership. - Build:
- Creates/enters the
builddirectory. - Runs
cmake ... - Runs
make.
- Creates/enters the
- Deployment:
- Copies the newly built
daemonbinary to the daemon root. - Reloads systemd (
systemctl daemon-reload). - Restarts the
daemon.service.
- Copies the newly built
Usage
Simply run bd from any terminal session where the AutomateLinux terminal functions are loaded:
bd
[!NOTE] The
bdfunction is defined interminal/functions/misc.shand depends on theAUTOMATE_LINUX_DAEMON_DIRenvironment variable.
Score
Total Score
Based on repository quality metrics
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
Reviews
Reviews coming soon