Fixed a few housekeeping things to make the linux packages more plug-and-play
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
0eaf18822b
commit
bd4117df38
4
pom.xml
4
pom.xml
@ -161,7 +161,7 @@
|
|||||||
<target>/opt/dragoon/dragoon.jar</target>
|
<target>/opt/dragoon/dragoon.jar</target>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
<fileSet>
|
<fileSet>
|
||||||
<source>${basedir}/src/main/resources/log4j2.xml</source>
|
<source>${basedir}/src/build/opt/log4j2.xml</source>
|
||||||
<target>/opt/dragoon/log4j2.xml</target>
|
<target>/opt/dragoon/log4j2.xml</target>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
</fileSets>
|
</fileSets>
|
||||||
@ -212,7 +212,7 @@
|
|||||||
<groupname>dragoon</groupname>
|
<groupname>dragoon</groupname>
|
||||||
<sources>
|
<sources>
|
||||||
<source>
|
<source>
|
||||||
<location>${basedir}/src/main/resources/log4j2.xml</location>
|
<location>${basedir}/src/build/opt/log4j2.xml</location>
|
||||||
</source>
|
</source>
|
||||||
</sources>
|
</sources>
|
||||||
</mapping>
|
</mapping>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
# This example transcodes footage to DNxHD 1080p60 for use in video editors like DaVinci Resolve.
|
# This example transcodes footage to DNxHD 1080p60 for use in video editors like DaVinci Resolve.
|
||||||
[transcoder]
|
[transcoder]
|
||||||
repo_path = '~/videos' # location of the videos to transcode
|
repo_path = '~/videos' # location of the videos to transcode
|
||||||
|
interval = 30
|
||||||
video_format = 'mov' # video container format
|
video_format = 'mov' # video container format
|
||||||
video_codec = 'dnxhd' # video codec to use
|
video_codec = 'dnxhd' # video codec to use
|
||||||
video_parameters = 'scale=1920x1080,fps=60,format=yuv422p' # video extra format parameters flag - this will be broken later into separate attributes
|
video_parameters = 'scale=1920x1080,fps=60,format=yuv422p' # video extra format parameters flag - this will be broken later into separate attributes
|
||||||
|
@ -4,7 +4,7 @@ Description=Dragoon video transcoder service
|
|||||||
[Service]
|
[Service]
|
||||||
User=dragoon
|
User=dragoon
|
||||||
Group=dragoon
|
Group=dragoon
|
||||||
ExecStart=/usr/bin/java -jar '/opt/dragoon/dragoon.jar' -Dlog4j.configurationFile=/opt/dragoon/log4j2.xml
|
ExecStart=/usr/bin/java -Dlog4j.configurationFile=/opt/dragoon/log4j2.xml -jar '/opt/dragoon/dragoon.jar' -c '/etc/dragoon/config.toml'
|
||||||
SuccessExitStatus=143
|
SuccessExitStatus=143
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
20
src/build/deb/opt/log4j2.xml
Normal file
20
src/build/deb/opt/log4j2.xml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Configuration status="info" name="Dragoon" packages="">
|
||||||
|
<Appenders>
|
||||||
|
<File name="DragoonLog" fileName="logs/dragoon.log">
|
||||||
|
<PatternLayout>
|
||||||
|
<Pattern>%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n</Pattern>
|
||||||
|
</PatternLayout>
|
||||||
|
</File>
|
||||||
|
<Console name="Console" target="SYSTEM_OUT">
|
||||||
|
<PatternLayout
|
||||||
|
pattern="%highlight{%d [%t] %-5level: %msg%n%throwable}" />
|
||||||
|
</Console>
|
||||||
|
</Appenders>
|
||||||
|
<Loggers>
|
||||||
|
<Root level="info">
|
||||||
|
<AppenderRef ref="DragoonLog"/>
|
||||||
|
<AppenderRef ref="Console"/>
|
||||||
|
</Root>
|
||||||
|
</Loggers>
|
||||||
|
</Configuration>
|
@ -4,7 +4,7 @@ import org.apache.commons.cli.*;
|
|||||||
|
|
||||||
public class Cmd {
|
public class Cmd {
|
||||||
|
|
||||||
private String configPath = "/etc/dragoon/config.toml";
|
private String configPath = "~/.config/dragoon.toml";
|
||||||
|
|
||||||
public Cmd(String[] args) throws ParseException {
|
public Cmd(String[] args) throws ParseException {
|
||||||
Options options = new Options();
|
Options options = new Options();
|
||||||
|
Loading…
Reference in New Issue
Block a user