Want more features on Pastebin? Sign Up, it's FREE!

pacmandb.service

By: swiftgeek on Jun 7th, 2012  |  syntax: None  |  size: 0.43 KB  |  views: 49  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. [Unit]
  2. Description=/var/lib/pacman
  3. DefaultDependencies=no
  4. After=remount-rootfs.service local-fs.target
  5. Before=shutdown.service
  6.  
  7.  
  8. [Service]
  9. Type=oneshot
  10. RemainAfterExit=yes
  11. ExecStart=/bin/bash -c '/sbin/e2fsck -p /var/lib/pacman.db >/dev/null; [ $? -eq 1 -o $? -eq 0 ] && /bin/mount -o loop,relatime,sync -t ext2 /var/lib/pacman.db /var/lib/pacman'
  12. ExecStop=/bin/umount /var/lib/pacman.db
  13.  
  14. [Install]
  15. WantedBy=local-fs.target
clone this paste RAW Paste Data