Skip to content

Commit 217dabb

Browse files
committed
Update gitignore - missing service files
1 parent 69d62a3 commit 217dabb

File tree

3 files changed

+44
-1
lines changed

3 files changed

+44
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44
app.ini
55
config.toml
66
docs
7-
oda*
87
.vscode

daemon/services/oda.plist

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<plist version="1.0">
2+
<dict>
3+
<key>Label</key>
4+
<string>devzero.io.oda</string>
5+
<key>ProgramArguments</key>
6+
<array>
7+
<string>{{.BinaryPath}}</string>
8+
{{- range .CollectCommandSplit }}
9+
<string>{{.}}</string>
10+
{{- end }}
11+
</array>
12+
<key>RunAtLoad</key>
13+
<true/>
14+
<key>KeepAlive</key>
15+
<true/>
16+
<key>UserName</key>
17+
<string>{{.Username}}</string>
18+
<key>EnvironmentVariables</key>
19+
<dict>
20+
<key>HOME</key>
21+
<string>{{.Home}}</string>
22+
</dict>
23+
<key>StandardOutPath</key>
24+
<string>/tmp/devzero.io.oda.out.log</string>
25+
<key>StandardErrorPath</key>
26+
<string>/tmp/devzero.io.oda.err.log</string>
27+
</dict>
28+
</plist>

daemon/services/oda.service

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[Unit]
2+
Description=Devzero.io ODA Service
3+
After=network.target
4+
5+
[Service]
6+
Environment="HOME={{.Home}}"
7+
User={{.Username}}
8+
Group={{.Group}}
9+
Type=simple
10+
ExecStart={{.BinaryPath}} {{.CollectCommand}}
11+
Restart=always
12+
StandardOutput=file:/tmp/devzero.io.oda.out.log
13+
StandardError=file:/tmp/devzero.io.oda.err.log
14+
15+
[Install]
16+
WantedBy=default.target

0 commit comments

Comments
 (0)