Skip to content

Commit

Permalink
Enable tag pooling for DA. Clean logs and tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
lastnitescurry committed Jan 2, 2019
1 parent bbc0f62 commit e2499ea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions roles/documentum_server_docbroker_systemd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ Try the new way to create a stop and start for Docbroker
- https://unix.stackexchange.com/questions/260973/adding-delay-between-stop-and-start-of-a-process-in-systemd
- https://stackoverflow.com/questions/43001223/how-to-ensure-that-there-is-a-delay-before-a-service-is-started-in-systemd

#### Tmp and logs clean with multiple pre Commands
- https://unix.stackexchange.com/questions/348450/confused-by-execstartpre-entries-in-systemd-unit-file

#### misc

- https://unix.stackexchange.com/questions/418851/location-to-place-systemd-service-environmentfile-when-creating-debian-package
Expand Down
8 changes: 8 additions & 0 deletions roles/documentum_server_jms_systemd/templates/jms.service
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,17 @@ Group={{ documentum_server.group }}
ExecStart={{ documentum_server.jms.dir }}/../startMethodServer.sh
ExecStop={{ documentum_server.jms.dir }}/../stopMethodServer.sh
WorkingDirectory={{ documentum_server.documentum }}/temp
#WorkingDirectory={{ documentum_server.jms.dir }}/../../server
TimeoutSec=600
TimeoutStartSec=600
SyslogIdentifier=documentum-server-jms-%i

# Remove tmp files and logs. DO NOT DO THIS IN PRODUCTION!
ExecStartPre=-/bin/rm -rf {{ documentum_server.jms.dir }}/../felix-cache
ExecStartPre=-/bin/rm -rf {{ documentum_server.documentum }}/temp/felix-cache
ExecStartPre=-/bin/rm -rf {{ documentum_server.jms.dir }}/log
ExecStartPre=-/bin/rm -rf {{ documentum_server.jms.dir }}/logs
ExecStartPre=-/bin/rm -rf {{ documentum_server.jms.dir }}/tmp

[Install]
WantedBy=multi-user.target

0 comments on commit e2499ea

Please sign in to comment.