Move systemd service creation scripts to container.sh

Part of #152
This commit is contained in:
Girish Ramakrishnan
2016-12-20 20:55:54 -08:00
parent d12b71f69c
commit b89886a945
4 changed files with 29 additions and 39 deletions

View File

@@ -0,0 +1,16 @@
# Allocate swap files
# https://bbs.archlinux.org/viewtopic.php?id=194792 ensures this runs after do-resize.service
# On ubuntu ec2 we use cloud-init https://wiki.archlinux.org/index.php/Cloud-init
[Unit]
Description=Box Setup
Before=docker.service collectd.service mysql.service sshd.service nginx.service
After=cloud-init.service
[Service]
Type=oneshot
ExecStart="/home/yellowtent/box/installer/systemd/cloudron-system-setup.sh"
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target