From 2b9d430a5efbf45b2f11296752edcc83d102ff2f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zolt=C3=A1n=20Felleg?= Date: Sat, 2 May 2026 22:51:04 +0200 Subject: [PATCH] Updated slycrm.in (added/updated systemd service files). --- .../c3d/firstboot/scripts/90_setupservices.sh | 2 ++ .../install-data/etc/systemd/system/gdftp.service | 13 +++++++------ .../etc/systemd/system/sly-doc-processor.service | 14 ++++++++++++++ .../install-data/etc/systemd/system/slycrm.service | 10 ++++------ .../c3d/postinstall/scripts/10_setupservices.sh | 1 + sources/slycrm.in/config | 2 +- 6 files changed, 29 insertions(+), 13 deletions(-) create mode 100644 sources/slycrm.in/c3d/postinstall/install-data/etc/systemd/system/sly-doc-processor.service diff --git a/sources/slycrm.in/c3d/firstboot/scripts/90_setupservices.sh b/sources/slycrm.in/c3d/firstboot/scripts/90_setupservices.sh index 86b7ed7..cab6a24 100755 --- a/sources/slycrm.in/c3d/firstboot/scripts/90_setupservices.sh +++ b/sources/slycrm.in/c3d/firstboot/scripts/90_setupservices.sh @@ -7,6 +7,8 @@ systemctl enable gdftp.service systemctl start gdftp.service systemctl enable slycrm.service systemctl start slycrm.service +systemctl enable sly-doc-processor.service +systemctl start sly-doc-processor.service systemctl enable logrotate.timer systemctl start logrotate.timer diff --git a/sources/slycrm.in/c3d/postinstall/install-data/etc/systemd/system/gdftp.service b/sources/slycrm.in/c3d/postinstall/install-data/etc/systemd/system/gdftp.service index 8250301..bfb4df7 100644 --- a/sources/slycrm.in/c3d/postinstall/install-data/etc/systemd/system/gdftp.service +++ b/sources/slycrm.in/c3d/postinstall/install-data/etc/systemd/system/gdftp.service @@ -1,13 +1,14 @@ [Unit] -Description=GDFTP +Description=Google Drive FTP +After=network.target [Service] -User=root -WorkingDirectory=/opt/slycrm/GDFTP -ExecStart=java -DSLY-CRM-GDFTP -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5006 -Xmx2G -Xms1G -jar /opt/slycrm/GDFTP/google-drive-ftp-adapter-1.6.2-jar-with-dependencies.jar -# optional items below +Type=exec Restart=always -RestartSec=3 +RestartSec=15 +WorkingDirectory=/opt/gdftp +ExecStart=/opt/gdftp/start.sh +ExecStop=/opt/gdftp/stop.sh [Install] WantedBy=multi-user.target diff --git a/sources/slycrm.in/c3d/postinstall/install-data/etc/systemd/system/sly-doc-processor.service b/sources/slycrm.in/c3d/postinstall/install-data/etc/systemd/system/sly-doc-processor.service new file mode 100644 index 0000000..965f8f7 --- /dev/null +++ b/sources/slycrm.in/c3d/postinstall/install-data/etc/systemd/system/sly-doc-processor.service @@ -0,0 +1,14 @@ +[Unit] +Description=sly-doc-processor +After=network.target + +[Service] +Type=exec +Restart=always +RestartSec=15 +WorkingDirectory=/opt/sly-doc-processor +ExecStart=/opt/sly-doc-processor/start.sh +ExecStop=/opt/sly-doc-processor/stop.sh + +[Install] +WantedBy=multi-user.target diff --git a/sources/slycrm.in/c3d/postinstall/install-data/etc/systemd/system/slycrm.service b/sources/slycrm.in/c3d/postinstall/install-data/etc/systemd/system/slycrm.service index 2213d88..f42bb08 100644 --- a/sources/slycrm.in/c3d/postinstall/install-data/etc/systemd/system/slycrm.service +++ b/sources/slycrm.in/c3d/postinstall/install-data/etc/systemd/system/slycrm.service @@ -1,16 +1,14 @@ [Unit] Description=slycrm After=network.target -StartLimitIntervalSec=0 [Service] -Type=simple +Type=exec Restart=always -RestartSec=1 -KillMode=process -User=root +RestartSec=15 WorkingDirectory=/opt/slycrm -ExecStart=/usr/bin/java -DSLY-CRM-APPLICATION -jar /opt/slycrm/sly-crm-app.jar +ExecStart=/opt/slycrm/start.sh +ExecStop=/opt/slycrm/stop.sh [Install] WantedBy=multi-user.target diff --git a/sources/slycrm.in/c3d/postinstall/scripts/10_setupservices.sh b/sources/slycrm.in/c3d/postinstall/scripts/10_setupservices.sh index 1b25293..6f89bd1 100755 --- a/sources/slycrm.in/c3d/postinstall/scripts/10_setupservices.sh +++ b/sources/slycrm.in/c3d/postinstall/scripts/10_setupservices.sh @@ -3,6 +3,7 @@ systemctl disable gdftp.service systemctl disable slycrm.service +systemctl disable sly-doc-processor.service systemctl disable NetworkManager-wait-online.service systemctl disable logrotate.timer diff --git a/sources/slycrm.in/config b/sources/slycrm.in/config index 9ba6501..bb7cfbf 100644 --- a/sources/slycrm.in/config +++ b/sources/slycrm.in/config @@ -3,7 +3,7 @@ lxc.include = /usr/share/lxc/config/common.conf lxc.uts.name = slycrm.in.useribm.hu lxc.rootfs.path = __CONTAINER_PATH__/rootfs lxc.mount.auto = proc sys -lxc.mount.entry = __CONTAINER_FILESYSTEMS_PATH__ opt/slycrm none bind,create=dir 0 0 +lxc.mount.entry = __CONTAINER_FILESYSTEMS_PATH__ opt none bind,create=dir 0 0 lxc.net.0.type = veth lxc.net.0.flags = up -- 2.54.0