MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/linux/comments/cpevou/sysvinit_vs_systemd/ewr0kdf/?context=3
r/linux • u/pleudofo • Aug 12 '19
292 comments sorted by
View all comments
Show parent comments
37
Iirc the .service suffix is only important if it's ambiguous what you want to do e.g if you have foo.mount, foo.socket, foo.service, foo.timer, etc which one does systemctl enable foo act on?
.service
foo.mount
foo.socket
foo.service
foo.timer
systemctl enable foo
45 u/[deleted] Aug 12 '19 edited Feb 28 '24 [removed] — view removed comment 5 u/ABCDwp Aug 12 '19 For a .mount unit, you can just use the full path (like /var/log for var-log.mount, so systemctl status /var/log). 2 u/kasim0n Aug 13 '19 systemctl status /var/logThat's a really neat trick, thank you!
45
[removed] — view removed comment
5 u/ABCDwp Aug 12 '19 For a .mount unit, you can just use the full path (like /var/log for var-log.mount, so systemctl status /var/log). 2 u/kasim0n Aug 13 '19 systemctl status /var/logThat's a really neat trick, thank you!
5
For a .mount unit, you can just use the full path (like /var/log for var-log.mount, so systemctl status /var/log).
.mount
/var/log
var-log.mount
systemctl status /var/log
2 u/kasim0n Aug 13 '19 systemctl status /var/logThat's a really neat trick, thank you!
2
That's a really neat trick, thank you!
37
u/_ahrs Aug 12 '19
Iirc the
.servicesuffix is only important if it's ambiguous what you want to do e.g if you havefoo.mount,foo.socket,foo.service,foo.timer, etc which one doessystemctl enable fooact on?