Skip to content

Commit 65b65a9

Browse files
committed
chore(systemd): sync podcst poller unit
1 parent ffd2033 commit 65b65a9

1 file changed

Lines changed: 21 additions & 13 deletions

File tree

scripts/podcst-poller.service

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
[Unit]
22
Description=Podcst feed poller daemon
3-
After=network.target network-online.target postgresql.service
4-
Requires=network-online.target
3+
After=network.target postgresql.service
54

65
[Service]
7-
Type=simple
8-
EnvironmentFile=/home/shantanu/src/shantanuraj/podcst-web/.env.local
9-
ExecStart=/home/shantanu/.bun/bin/bun run /home/shantanu/src/shantanuraj/podcst-web/scripts/poll-feeds.ts --daemon
6+
User=svc-podcst
7+
Group=svc-podcst
8+
Environment=HOME=/var/lib/podcst
9+
Environment=DATABASE_URL=postgres://podcst_app@localhost/podcst
10+
Environment=PGHOST=/var/run/postgresql
1011
WorkingDirectory=/home/shantanu/src/shantanuraj/podcst-web
11-
Restart=always
12-
RestartSec=10
13-
User=shantanu
14-
Group=shantanu
15-
StandardOutput=journal
16-
StandardError=journal
17-
SyslogIdentifier=podcst-poller
18-
12+
ExecStart=/usr/local/bin/bun run scripts/poll-feeds.ts --daemon
13+
Restart=on-failure
14+
RestartSec=5
15+
NoNewPrivileges=true
16+
ProtectSystem=strict
17+
ProtectHome=tmpfs
18+
BindReadOnlyPaths=/home/shantanu/src/shantanuraj/podcst-web
19+
ReadWritePaths=/var/lib/podcst
20+
PrivateTmp=true
21+
PrivateDevices=true
22+
ProtectKernelTunables=true
23+
ProtectControlGroups=true
24+
RestrictSUIDSGID=true
25+
LockPersonality=true
26+
CapabilityBoundingSet=
1927
[Install]
2028
WantedBy=multi-user.target

0 commit comments

Comments
 (0)