</source>
</sources>
</mapping>
+ <mapping>
+ <directory>/usr/lib/systemd/user</directory>
+ <username>root</username>
+ <groupname>root</groupname>
+ <filemode>644</filemode>
+ <directoryIncluded>false</directoryIncluded>
+ <sources>
+ <source>
+ <location>rpm/usr/lib/systemd/user</location>
+ <includes>
+ <include>*.service</include>
+ </includes>
+ </source>
+ </sources>
+ </mapping>
<mapping>
<directory>/usr/sbin</directory>
<username>root</username>
--- /dev/null
+[Unit]
+Description=Argeo Node %I
+
+[Service]
+Type=simple
+PIDFile=/var/run/user/%U/%i.pid
+ExecStart=/usr/sbin/argeoctl start %I
+ExecReload=/usr/sbin/argeoctl reload %I
+SuccessExitStatus=143
+StateDirectory=argeo.d/%I
+LogsDirectory=argeo.d/%I
+ConfigurationDirectory=argeo.d/%I
# Instance
INSTANCE=$2
if [ -z "$STATE_DIRECTORY" ]; then
- INSTANCE_DIR=/var/lib/$APP.d/$INSTANCE
+ INSTANCE_DIR=$HOME/.local/share/$APP.d/$INSTANCE
else
# systemd StateDirectory=
INSTANCE_DIR=$STATE_DIRECTORY
fi
if [ -z "$CONFIGURATION_DIRECTORY" ]; then
- CONF_DIR=/etc/$APP.d/$INSTANCE
+ CONF_DIR=$HOME/.config/$APP.d/$INSTANCE
else
# systemd ConfigurationDirectory=
CONF_DIR=$CONFIGURATION_DIRECTORY