Ignore:
Timestamp:
Jul 20, 2016, 10:39:34 PM (10 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
0.5, app-cordova, debian/bullseye, debian/jessie, master
Children:
f336595
Parents:
0272b16
Message:

Fixed several issues

Location:
src/puppetcode/environments/test/modules/gnuboat_epd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/puppetcode/environments/test/modules/gnuboat_epd/manifests/service.pp

    r0272b16 re82ec64  
    33        Enum['running', 'stopped'] $status = 'running',
    44        Boolean $enabled = true,
    5         String $options = '-o allow_other -o default_permissions'
    6         String $mount_point = '/dev/epp',
    7         String $display_size = '2.7'
     5        String $options = '-o allow_other -o default_permissions',
     6        String $mount_point = '/dev/epd',
     7        String $display_size = '2.7',
    88        String $exec_start_post = '', # Could be set to a script to display a welcome screen, after starting epd-fuse service
    99        String $exec_stop_pre = '', # Could be set to a script to display a good by screen, before stopping epd-fuse service
    … …  
    3030#               }),
    3131#       }
    32        
    33         file{'/etc/systemd/system/epd-fuse.service/local.conf':
     32
     33        file{'/etc/systemd/system':
     34                ensure => 'directory',
     35                owner => 'root',
     36                group => 'root',
     37                mode => '0750',
     38        }
     39
     40        file{'/etc/systemd/system/epd-fuse.service':
    3441                ensure => present,
    3542                owner => 'root',
  • src/puppetcode/environments/test/modules/gnuboat_epd/templates/epd-fuse.service.epp

    r0272b16 re82ec64  
     1[Unit]
     2Description=A Fuse driver for the Repaper.org EPD
     3After=network.target
     4
    15[Service]
    2 ExecStartPre=/usr/bin/mkdir -p <%= $mount_point %>
     6Type=forking
     7PrivateDevices=no
     8SyslogLevel=err
     9ExecStartPre=/bin/mkdir -p <%= $mount_point %>
    310ExecStart=
    411ExecStart=/usr/sbin/epd_fuse --panel=<%= $display_size %> <%= $options %> <%= $mount_point %>
    5 <% if $exec_start_post { -%>
    6 ExecStartPost=-<%= $exec_start_post %>
     12ExecStop=
     13<% if $exec_stop_pre { -%>
     14ExecStop=-<%= $exec_stop_pre %>
    715<% } -%>
    8 ExecStop=
    9 ExecStop=/usr/bin/umount <%= $mount_point %>
    10 <% if $exec_stop_pre { -%>
    11 ExecStopPre=-<%= $exec_stop_pre %>
    12 <% } -%>
     16ExecStop=/bin/umount <%= $mount_point %>
     17KillSignal=SIGQUIT
     18KillMode=mixed
     19
     20[Install]
     21WantedBy=multi-user.target
Note: See TracChangeset for help on using the changeset viewer.