Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. [Unit]
  2. SourcePath=/etc/init.d/jenkins
  3. Description=LSB: Start Jenkins at boot time
  4. Before=runlevel2.target runlevel3.target runlevel4.target runlevel5.target shutdown.target
  5. After=remote-fs.target systemd-journald-dev-log.socket network-online.target
  6. Wants=network-online.target
  7. Conflicts=shutdown.target
  8.  
  9. [Service]
  10. Type=forking
  11. Restart=no
  12. TimeoutStartSec=5min
  13. TimeoutStopSec=10s
  14. IgnoreSIGPIPE=no
  15. KillMode=process
  16. GuessMainPID=no
  17. RemainAfterExit=yes
  18. SysVStartPriority=2
  19. ExecStart=/etc/init.d/jenkins start
  20. ExecStop=/etc/init.d/jenkins stop
  21.  
  22. # systemctl enable jenkins
  23. Synchronizing state of jenkins.service with SysV service script with /lib/systemd/systemd-sysv-install.
  24. Executing: /lib/systemd/systemd-sysv-install enable jenkins
  25. The unit files have no installation config (WantedBy, RequiredBy, Also, Alias
  26. settings in the [Install] section, and DefaultInstance for template units).
  27. This means they are not meant to be enabled using systemctl.
  28. Possible reasons for having this kind of units are:
  29. 1) A unit may be statically enabled by being symlinked from another unit's
  30. .wants/ or .requires/ directory.
  31. 2) A unit's purpose may be to act as a helper for some other unit which has
  32. a requirement dependency on it.
  33. 3) A unit may be started when needed via activation (socket, path, timer,
  34. D-Bus, udev, scripted systemctl call, ...).
  35. 4) In case of template units, the unit is meant to be enabled with some
  36. instance name specified.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement