1
0
Fork 0
bill_man/bill_man.service

26 lines
715 B
SYSTEMD
Raw Normal View History

2018-08-22 01:51:32 +09:00
[Unit]
Description=Daily AWS Billing Report Service
After=syslog.target network-online.target
Wants=network-online.target
[Service]
WorkingDirectory=/home/admin/service/bill_man
Environment=VIRTUAL_ENV=/home/admin/service/bill_man/venv
ExecStart=/home/admin/service/bill_man/bill_man start
ExecStop=/home/admin/service/bill_man/bill_man start
PIDFile=/home/admin/service/bill_man/bill_man.pid
KillMode=process
Restart=on-failure
TimeoutStartSec=5
Type=forking
PrivateDevices=yes
PrivateTmp=yes
ProtectSystem=full
2018-08-22 01:56:11 +09:00
ReadOnlyDirectories=/home/admin/service/bill_man
2018-08-22 01:51:32 +09:00
ReadWriteDirectories=/home/admin/service/bill_man/log
ProtectHome=yes
NoNewPrivileges=yes
[Install]
#WantedBy=multi-user.target
WantedBy=default.target