二进制及自命令命名统一简化

This commit is contained in:
2026-09-08 17:01:09 +08:00
parent 6bfe20ee00
commit edfc787e1a
18 changed files with 105 additions and 105 deletions
+11
View File
@@ -0,0 +1,11 @@
# /etc/systemd/system/pn-maint.service
# 每日维护:先 gc(--commit)后备份(§10.3)
[Unit]
Description=Pure Note daily maintenance (gc + backup)
After=pn.service
[Service]
Type=oneshot
User=purenote
ExecStart=/opt/pure-note/pn gc --data-dir /opt/pure-note/data --commit
ExecStart=/opt/pure-note/pn backup --data-dir /opt/pure-note/data /backup/pn-%%F.db
@@ -1,4 +1,4 @@
# /etc/systemd/system/pure-note-maint.timer
# /etc/systemd/system/pn-maint.timer
[Unit]
Description=Daily Pure Note maintenance (gc + backup)
@@ -1,4 +1,4 @@
# /etc/systemd/system/pure-note.service
# /etc/systemd/system/pn.service
[Unit]
Description=Pure Note - minimalist high-security private notes + blog
After=network.target
@@ -6,7 +6,7 @@ After=network.target
[Service]
User=purenote
WorkingDirectory=/opt/pure-note
ExecStart=/opt/pure-note/pure-note serve --addr 127.0.0.1:8080 \
ExecStart=/opt/pure-note/pn start --addr 127.0.0.1:8080 \
--data-dir /opt/pure-note/data --behind-proxy
Restart=on-failure
RestartSec=5
-11
View File
@@ -1,11 +0,0 @@
# /etc/systemd/system/pure-note-maint.service
# 每日维护:先 gc(--commit)后备份(§10.3)
[Unit]
Description=Pure Note daily maintenance (gc + backup)
After=pure-note.service
[Service]
Type=oneshot
User=purenote
ExecStart=/opt/pure-note/pure-note gc --data-dir /opt/pure-note/data --commit
ExecStart=/opt/pure-note/pure-note backup --data-dir /opt/pure-note/data /backup/pure-note-%%F.db