File tree 1 file changed +6
-3
lines changed
nixos/modules/services/networking
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 198
198
199
199
systemd . services . cjdns = {
200
200
description = "cjdns: routing engine designed for security, scalability, speed and ease of use" ;
201
- wantedBy = [ "multi-user.target" ] ;
202
- after = [ "network.target" ] ;
201
+ wantedBy = [ "multi-user.target" "sleep.target" ] ;
202
+ after = [ "network-online.target" ] ;
203
+ bindsTo = [ "network-online.target" ] ;
203
204
204
205
preStart = if cfg . confFile != null then "" else ''
205
206
[ -e /etc/cjdns.keys ] && source /etc/cjdns.keys
235
236
236
237
serviceConfig = {
237
238
Type = "forking" ;
238
- Restart = "on-failure" ;
239
+ Restart = "always" ;
240
+ StartLimitInterval = 0 ;
241
+ RestartSec = 1 ;
239
242
CapabilityBoundingSet = "CAP_NET_ADMIN CAP_NET_RAW" ;
240
243
AmbientCapabilities = "CAP_NET_ADMIN CAP_NET_RAW" ;
241
244
ProtectSystem = "full" ;
You can’t perform that action at this time.
0 commit comments