Skip to content

Commit

Permalink
Have more resources restart on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Jun 8, 2016
1 parent c8d90aa commit 1132251
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## HEAD

- The following services now restart on failure:
`app@`, `hexchat`, `insync`, `rbenv@`, `transmission-gtk`, and `xbindkeys`.

## 2.1.0

- Use `--no-daemon` mode for insync.
Expand Down
1 change: 1 addition & 0 deletions user/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ After=xresources.service

[Service]
ExecStart=/usr/bin/env %i
Restart=on-failure

[Install]
WantedBy=display-server.target
1 change: 1 addition & 0 deletions user/hexchat.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ After=xresources.service

[Service]
ExecStart=/usr/bin/hexchat --minimize=2
Restart=on-failure

[Install]
WantedBy=display-server.target
1 change: 1 addition & 0 deletions user/insync.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ After=xresources.service

[Service]
ExecStart=/usr/bin/insync start --no-daemon
Restart=on-failure

[Install]
WantedBy=window-manager.target
1 change: 1 addition & 0 deletions user/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Description=Run ruby /usr/local/bin/%i

[Service]
ExecStart=/bin/sh -c "`%h/.rbenv/bin/rbenv which ruby` /usr/local/bin/%i"
Restart=on-failure

[Install]
WantedBy=default.target
1 change: 1 addition & 0 deletions user/transmission-gtk.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ After=display-server.target

[Service]
ExecStart=/usr/bin/transmission-gtk --minimized
Restart=on-failure

[Install]
WantedBy=display-server.target
1 change: 1 addition & 0 deletions user/xbindkeys.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ After=display-server.target

[Service]
ExecStart=/usr/bin/xbindkeys --nodaemon --file %h/.config/xbindkeys/xbindkeysrc
Restart=on-failure

[Install]
WantedBy=display-server.target

0 comments on commit 1132251

Please sign in to comment.