Create nextclaw.service
Browse files- nextclaw.service +17 -0
nextclaw.service
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/sbin/openrc-run
|
| 2 |
+
|
| 3 |
+
description="NextClaw AI assistant service"
|
| 4 |
+
command="/usr/local/bin/nextclaw"
|
| 5 |
+
command_args="start"
|
| 6 |
+
command_background=true
|
| 7 |
+
pidfile="/var/run/nextclaw.pid"
|
| 8 |
+
|
| 9 |
+
start() {
|
| 10 |
+
echo "Starting NextClaw..."
|
| 11 |
+
${command} ${command_args}
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
stop() {
|
| 15 |
+
echo "Stopping NextClaw..."
|
| 16 |
+
nextclaw stop
|
| 17 |
+
}
|