-
Notifications
You must be signed in to change notification settings - Fork 24
/
osconfig.service
23 lines (21 loc) · 797 Bytes
/
osconfig.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[Unit]
Description=OSConfig Agent Daemon
After=network-online.target
Wants=network.target network-online.target nss-lookup.target
# Allow restart up to 3 times every 16 minutes (3 times x 5 minutes + 1 minute)
StartLimitIntervalSec=960
StartLimitBurst=3
[Service]
# Uncomment and use next two lines to run OSConfig with a manual connection string loaded from a file
# Environment=CONN_STR="/etc/osconfig/osconfig.conn"
# ExecStart=/usr/bin/osconfig $CONN_STR
# Uncomment and edit next line to configure OSConfig with a proxy to connect to the IoT Hub
# Environment="http_proxy=http://user:[email protected]:100//"
ExecStart=/usr/bin/osconfig
Type=simple
User=root
Restart=always
# Allow restart at 5 minutes intervals
RestartSec=300
[Install]
WantedBy=multi-user.target