Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3773175
D1528.id3902.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D1528.id3902.diff
View Options
diff --git a/roles/shellserver/quassel-core/files/quassel.service b/roles/shellserver/quassel-core/files/quassel.service
new file mode 100644
--- /dev/null
+++ b/roles/shellserver/quassel-core/files/quassel.service
@@ -0,0 +1,30 @@
+# -------------------------------------------------------------
+# Odderon
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Eglide
+# Created: 2018-03-28
+# License: Trivial work, not eligible to copyright
+# Source: Arch quassel package
+# Source file: roles/shellserver/quassel-core/files/quassel.service
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+[Unit]
+Description=Quassel Core
+After=network.target postgresql.service
+Wants=postgresql.service
+
+[Service]
+User=quassel
+Group=quassel
+PIDFile=/var/run/quassel.pid
+EnvironmentFile=/etc/conf.d/quassel
+ExecStart=/usr/bin/quasselcore --configdir=/var/lib/quassel
+
+[Install]
+WantedBy=multi-user.target
diff --git a/roles/shellserver/quassel-core/init.sls b/roles/shellserver/quassel-core/init.sls
--- a/roles/shellserver/quassel-core/init.sls
+++ b/roles/shellserver/quassel-core/init.sls
@@ -10,3 +10,4 @@
- .account
- .certificate
- .software
+ - .service
diff --git a/roles/shellserver/quassel-core/service.sls b/roles/shellserver/quassel-core/service.sls
new file mode 100644
--- /dev/null
+++ b/roles/shellserver/quassel-core/service.sls
@@ -0,0 +1,35 @@
+# -------------------------------------------------------------
+# Salt — Provision Quassel core
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Eglide
+# Created: 2018-03-28
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% from "map.jinja" import services with context %}
+
+# -------------------------------------------------------------
+# Unit configuration
+# -------------------------------------------------------------
+
+{% if services['manager'] == 'systemd' %}
+
+quassel_unit:
+ file.managed:
+ - name: /etc/systemd/system/quassel.service
+ - source: salt://roles/shellserver/quassel-core/files/quassel.service
+ - mode: 0644
+ module.run:
+ - name: service.force_reload
+ - m_name: quassel
+ - onchanges:
+ - file: quassel_unit
+
+odderon_running:
+ service.running:
+ - name: odderon
+ - enable: true
+ - watch:
+ - module: odderon_unit
+
+{% endif %}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 06:08 (14 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2262017
Default Alt Text
D1528.id3902.diff (2 KB)
Attached To
Mode
D1528: Deploy systemd service for Quassel
Attached
Detach File
Event Timeline
Log In to Comment