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