2022-03-24 15:07:33 +00:00
|
|
|
[Unit]
|
|
|
|
Description="Coder - Self-hosted developer workspaces on your infra"
|
2022-08-02 05:22:14 +00:00
|
|
|
Documentation=https://coder.com/docs/coder-oss
|
2022-03-24 15:07:33 +00:00
|
|
|
Requires=network-online.target
|
|
|
|
After=network-online.target
|
|
|
|
ConditionFileNotEmpty=/etc/coder.d/coder.env
|
|
|
|
StartLimitIntervalSec=60
|
|
|
|
StartLimitBurst=3
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=notify
|
|
|
|
EnvironmentFile=/etc/coder.d/coder.env
|
2022-06-15 21:02:18 +00:00
|
|
|
User=coder
|
|
|
|
Group=coder
|
2022-03-24 15:07:33 +00:00
|
|
|
ProtectSystem=full
|
|
|
|
PrivateTmp=yes
|
|
|
|
PrivateDevices=yes
|
|
|
|
SecureBits=keep-caps
|
2022-06-28 15:02:42 +00:00
|
|
|
AmbientCapabilities=CAP_IPC_LOCK CAP_NET_BIND_SERVICE
|
2022-03-28 19:57:19 +00:00
|
|
|
CacheDirectory=coder
|
2022-03-25 00:20:13 +00:00
|
|
|
CapabilityBoundingSet=CAP_SYSLOG CAP_IPC_LOCK CAP_NET_BIND_SERVICE
|
2022-04-26 02:09:11 +00:00
|
|
|
KillSignal=SIGINT
|
2022-10-17 23:50:29 +00:00
|
|
|
KillMode=mixed
|
2022-03-24 15:07:33 +00:00
|
|
|
NoNewPrivileges=yes
|
2022-04-23 17:19:20 +00:00
|
|
|
ExecStart=/usr/bin/coder server
|
2022-03-24 15:07:33 +00:00
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=5
|
2022-10-17 23:50:29 +00:00
|
|
|
TimeoutStopSec=90
|
2022-03-24 15:07:33 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|