View Issue Details

IDProjectCategoryView StatusLast Update
0003560SymmetricDSBugpublic2021-06-08 18:55
Reporterjflambert Assigned Topmarzullo  
Prioritynormal 
Status closedResolutionfixed 
Product Version3.9.7 
Target Version3.10.4Fixed in Version3.10.4 
Summary0003560: Unable to use SymmetricDS service in Ubuntu 18.04 / bionic beaver (Systemd in general)
DescriptionSymmetricDS service in Ubuntu 18.04 is unusable. Missing a .service file (Service Unit Configuration)

For example: /lib/systemd/system/SymmetricDS.service

see http://manpages.ubuntu.com/manpages/bionic/man5/systemd.service.5.html

Steps To Reproduce# lsb_release -sd
Ubuntu 18.04 LTS

# ./sym_service install
Installing SymmetricDS ...
Done

# service SymmetricDS status
Unit SymmetricDS.service could not be found.

# /etc/init.d/SymmetricDS status
Installed: true
Running: false
Wrapper PID: 0
Wrapper Running: false
Server PID: 0
Server Running: false

# service SymmetricDS start
Failed to start SymmetricDS.service: Unit SymmetricDS.service not found

# /etc/init.d/SymmetricDS start
Waiting for server to start
......
Started
Additional InformationWrite the following file to /lib/systemd/system/SymmetricDS.service
Then create a symbolic link: ln -s /lib/systemd/system/SymmetricDS.service /etc/systemd/system/multi-user.target.wants/SymmetricDS.service

###############
[Unit]
Description=SymmetricDS

[Service]
Type=oneshot
ExecStart=/bin/true
ExecReload=/bin/true
RemainAfterExit=on

[Install]
WantedBy=multi-user.target
Tagssym/sym_service

Relationships

related to 0005019 closedelong Service fails to install on SUSE 15 

Activities

jflambert

2018-05-25 13:10

reporter   ~0001203

I've improved the SymmetricDS.service configuration unit. Still needs to be placed in /lib/systemd/system/SymmetricDS.service

But then you must use these commands to register and enable the service for auto-start (don't use the ln command from my previous suggestion)

systemctl enable SymmetricDS
systemctl start SymmetricDS

This seems to provide with a stable auto-started service. We kind of lose out on the "status" functionality that was built into the original service because systemd takes over. The "After" clause is also very specific to my use case, probably better to use "After=network-online.target" instead, I'll let you guys determine that.


######
[Unit]
Description=SymmetricDS
After=postgresql.service

[Service]
Type=oneshot
RemainAfterExit=yes
Environment="SYM_HOME=/opt/symmetric-server-3.9.6"
Environment="JARFILE=/opt/symmetric-server-3.9.6/lib/symmetric-wrapper.jar"
ExecStart=/usr/bin/java -jar /opt/symmetric-server-3.9.6/lib/symmetric-wrapper.jar start
ExecStop=/usr/bin/java -jar /opt/symmetric-server-3.9.6/lib/symmetric-wrapper.jar stop

[Install]
WantedBy=multi-user.target

Related Changesets

SymmetricDS: 3.10 3b2fca10

2019-08-08 13:34:23

Philip Marzullo

Details Diff
0003560: Unable to use SymmetricDS service in Ubuntu 18.04 / bionic
beaver (Systemd in general)
Affected Issues
0003560
mod - symmetric-wrapper/src/main/java/org/jumpmind/symmetric/wrapper/UnixService.java Diff File
add - symmetric-wrapper/src/main/resources/symmetricds.systemd Diff File

Issue History

Date Modified Username Field Change
2018-05-10 17:59 jflambert New Issue
2018-05-25 13:10 jflambert Note Added: 0001203
2018-10-03 17:39 hanes Target Version => 3.10.0
2018-10-17 18:36 hanes Status new => acknowledged
2018-10-29 16:52 hanes Priority high => normal
2018-12-05 19:03 hanes Summary Unable to use SymmetricDS service in Ubuntu 18.04 / bionic beaver => Unable to use SymmetricDS service in Ubuntu 18.04 / bionic beaver (Systemd in general)
2019-03-14 12:39 admin Target Version 3.10.0 => 3.10.1
2019-04-23 13:46 elong Target Version 3.10.1 => 3.10.2
2019-04-24 17:59 elong Tag Attached: sym/sym_service
2019-05-08 12:51 admin Target Version 3.10.2 => 3.10.3
2019-06-24 17:45 elong Target Version 3.10.3 => 3.10.4
2019-08-08 17:34 pmarzullo Assigned To => pmarzullo
2019-08-08 17:34 pmarzullo Status acknowledged => resolved
2019-08-08 17:34 pmarzullo Resolution open => fixed
2019-08-08 17:34 pmarzullo Fixed in Version => 3.10.4
2019-08-08 18:00 Changeset attached => SymmetricDS 3.10 3b2fca10
2019-08-23 16:46 admin Status resolved => closed
2021-06-08 18:55 elong Relationship added related to 0005019