Set initial java heap size to 2MB in service files

Make it more usable in memory restricted environments
This commit is contained in:
AsamK 2016-02-16 13:46:01 +01:00
parent 11e5dfbcf5
commit 5f4325283a
2 changed files with 2 additions and 0 deletions

View file

@ -7,6 +7,7 @@ After=network.target
[Service] [Service]
Type=dbus Type=dbus
Environment=TEXTSECURE_CLI_OPTS="-Xms2m"
ExecStart=%dir%/bin/textsecure-cli -u %I --config /var/lib/textsecure-cli daemon --system ExecStart=%dir%/bin/textsecure-cli -u %I --config /var/lib/textsecure-cli daemon --system
User=textsecure-cli User=textsecure-cli
BusName=org.asamk.TextSecure BusName=org.asamk.TextSecure

View file

@ -3,6 +3,7 @@ Description=Send secure messages to TextSecure/Signal clients
[Service] [Service]
Type=dbus Type=dbus
Environment=TEXTSECURE_CLI_OPTS="-Xms2m"
ExecStart=%dir%/bin/textsecure-cli -u %number% --config /var/lib/textsecure-cli daemon --system ExecStart=%dir%/bin/textsecure-cli -u %number% --config /var/lib/textsecure-cli daemon --system
User=textsecure-cli User=textsecure-cli
BusName=org.asamk.TextSecure BusName=org.asamk.TextSecure