Files
iac-duplicate/ansible/templates/systemd-service.j2
T
Jenkins CI 71be2abd2e Add complete SACC v4 infrastructure project
- Terraform modules: VPC, EC2, RDS, S3, CloudFront, Route53, Lambda, IAM, Security Groups
- Ansible playbooks for server configuration
- Scripts: create-test-environment.sh, destroy-test-environment.sh, validate-environment.sh
- Documentation: README, QUICKSTART, AGENTS
- Jenkins pipeline for automated deployment
- Jenkins pipeline for environment destruction
2026-06-03 04:39:01 +00:00

27 lines
744 B
Django/Jinja

[Unit]
Description=SACC4 {{ item.name }} Service
After=network.target
[Service]
Type=simple
User=osiris
Group=duat
WorkingDirectory=/opt/sacc4/{{ item.name }}/current
ExecStart=/usr/bin/java -jar /opt/sacc4/{{ item.name }}/current/{{ item.name }}.jar
ExecStop=/bin/kill -15 $MAINPID
Restart=on-failure
RestartSec=10
StandardOutput=append:/var/log/sacc4/{{ item.name }}/{{ item.name }}-service.log
StandardError=append:/var/log/sacc4/{{ item.name }}/{{ item.name }}-error.log
# Límites de recursos
MemoryLimit=512M
CPUQuota=50%
# Variables de entorno
EnvironmentFile=/etc/sacc4/sacc4.env
Environment="SERVER_PORT={{ item.port }}"
Environment="LOG_PATH=/var/log/sacc4/{{ item.name }}/{{ item.name }}.log"
[Install]
WantedBy=multi-user.target