二进制及自命令命名统一简化
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user