Added log4j2.xml to linux packages to fix the deployment
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
ea6e6c95e1
commit
7bdd4a5dfb
15
pom.xml
15
pom.xml
@ -160,6 +160,10 @@
|
||||
<source>${basedir}/target/dragoon-${project.version}-jar-with-dependencies.jar</source>
|
||||
<target>/opt/dragoon/dragoon.jar</target>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<source>${basedir}/src/main/resources/log4j2.xml</source>
|
||||
<target>/opt/dragoon/log4j2.xml</target>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</configuration>
|
||||
</plugin>
|
||||
@ -201,6 +205,17 @@
|
||||
</source>
|
||||
</sources>
|
||||
</mapping>
|
||||
<mapping>
|
||||
<directory>/opt/dragoon/log4j2.xml</directory>
|
||||
<filemode>755</filemode>
|
||||
<username>dragoon</username>
|
||||
<groupname>dragoon</groupname>
|
||||
<sources>
|
||||
<source>
|
||||
<location>${basedir}/src/main/resources/log4j2.xml</location>
|
||||
</source>
|
||||
</sources>
|
||||
</mapping>
|
||||
<mapping>
|
||||
<directory>/etc/dragoon</directory>
|
||||
<configuration>true</configuration>
|
||||
|
@ -4,7 +4,7 @@ Description=Dragoon video transcoder service
|
||||
[Service]
|
||||
User=dragoon
|
||||
Group=dragoon
|
||||
ExecStart=/usr/bin/java -jar '/opt/dragoon/dragoon.jar'
|
||||
ExecStart=/usr/bin/java -jar '/opt/dragoon/dragoon.jar' -Dlog4j.configurationFile=/opt/dragoon/log4j2.xml
|
||||
SuccessExitStatus=143
|
||||
|
||||
[Install]
|
||||
|
Loading…
Reference in New Issue
Block a user