Changeset 5857 in /cluster/svnroot


Ignore:
Timestamp:
Jan 3, 2017 8:19:39 PM (4 years ago)
Author:
skylar
Message:

make sure we are on tty1 for bccd-passwd re #988

Location:
bccd-ng/branches/skylar/bccd-3.4.0-build_ng
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/skylar/bccd-3.4.0-build_ng/packages.conf

    r5839 r5857  
    33declare -a PACKAGES
    44
     5PACKAGES+=("kbd")
     6PACKAGES+=("console-data")
    57PACKAGES+=("libfftw3-bin")
    68PACKAGES+=("libfftw3-dev")
  • bccd-ng/branches/skylar/bccd-3.4.0-build_ng/src/bin/bccd-passwd-wrapper

    r4964 r5857  
    3333}
    3434
     35# Change terminal to tty1
     36open(my $CHVT, '|-', '/bin/chvt', '1',)
     37    or die "Can't run chvt: $!\n";
     38close($CHVT);
     39
    3540my $Bccd = new Bccd();
    3641my $user = $ARGV[0];
     
    3843
    3944if($passwd) {
    40         open(my $PASSWD, '|-', "/usr/bin/passwd $user")
     45        open(my $PASSWD, '|-', '/usr/bin/passwd',$user,)
    4146                or die "Can't run passwd $user: $!\n";
    4247        print $PASSWD "$passwd\n";
  • bccd-ng/branches/skylar/bccd-3.4.0-build_ng/src/etc/systemd/user/bccd-passwd.service

    r5855 r5857  
    33[Unit]
    44Description="Set BCCD user password"
     5After=getty@tty1.service
    56
    67[Service]
     
    910
    1011# This service is expected to exit completely even if it is successful
    11 RemainAfterExit=yes
     12#RemainAfterExit=yes
    1213
    1314# Do not restart after everything exits
    14 Restart=no
     15#Restart=no
    1516
    1617# This service requires user interaction via the TTY
    1718StandardInput=tty
    1819StandardOutput=tty
     20TTYPath=/dev/tty1
     21TTYReset=yes
     22TTYVHangup=yes
    1923
    2024[Install]
    21 WantedBy=multi-user.target
     25WantedBy=default.target
    2226
Note: See TracChangeset for help on using the changeset viewer.