-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathabtech-tracker-email-idle@.service
More file actions
44 lines (35 loc) · 1.22 KB
/
abtech-tracker-email-idle@.service
File metadata and controls
44 lines (35 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[Unit]
Description=AB Tech Tracker Email Idle Task
After=network.target
# Only run if associated Rails is running, otherwise it might be down for
# development
After=abtech-tracker@.service
[Service]
# *
# * BEGIN TRACKER EMAIL IDLE TASK CONFIG DEFAULTS
# *
# * Override options in this block by using the `systemctl edit` command.
# * Use this command; DO NOT EDIT THIS FILE ON THE DEPLOYED SYSTEM. This file
# * documents the options.
# *
# Tracker Environment File
# ========================
# The working directory should be the location of the repo.
EnvironmentFile=/srv/abtech-tracker/%i/tracker.env
# Service Working Directory
# =========================
# The working directory should be the location of the repo.
WorkingDirectory=/srv/abtech-tracker/%i/repo
# Service User
# ============
# This user will run Tracker. Preferably configure a non-privileged user that
# does not need edit access to the rbenv root. If you override this, then you
# also need to change the associated systemd socket file.
User=deploy-abtech-tracker
# *
# * END TRACKER EMAIL IDLE TASK CONFIG DEFAULTS
# *
Type=simple
ExecStart=/srv/abtech-tracker/%i/rbenv/shims/bundle exec --keep-file-descriptors rails email:idle
[Install]
WantedBy=multi-user.target